3

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.

1
  • 3
    You should show a complete, small example which we could use for tests. Aug 9, 2018 at 21:06

1 Answer 1

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

1
  • This is exactly what I was looking for. Many thanks for your help! Aug 12, 2018 at 12:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .