2

How can I have a two-line label in a gantt chart when the label is outside of the chart (to the left)? This problem was solved when the label is inline with the bar (Two-line labels in ganttchart), but it does not work when the label is the left of the chart.

Thanks for your help.

  • 3
    You should show a complete, small example which we could use for tests. – Ulrike Fischer Aug 9 '18 at 21:06
4

Are you looking for something like this:

\documentclass{standalone}
\usepackage{pgfgantt}
\begin{document}
\begin{ganttchart}[
    bar label node/.append style=%
    {align=left}
  ]{1}{12}
    \gantttitlelist{1,...,12}{1} \\
    \ganttbar[bar height=1]{two\ganttalignnewline lines}{1}{2} \\
    \ganttbar[bar height=1]{two\\ lines}{1}{2} \\
\end{ganttchart}
\end{document}

enter image description here

  • This is exactly what I was looking for. Many thanks for your help! – Mathias Michaud Aug 12 '18 at 12:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.