I have a label for a ganttbar that is longer than the bar itself, and need to move it outside the bar to its right. Sketch of desired output:
----
| | My label here
----
I tried to use the (sparse!) suggestion given in the manual (p.25) and wrote something like:
\ganttbar[inline label node/.append style={right=5mm}]{0.1,0.2}{2}{2}
but the result is actually the opposite of what I need. I get something like:
----
My label here | |
----
Moreover, no matter how I play with the parameter of the style option (e..g right, left, different mm values, etc), I always get the same result, with the label on the left. I am obviously missing something important about the syntax of the ganttbar options.
Here is a MWE showing the wrong behavior:
\documentclass[a4paper,10pt]{article}
\usepackage{pgfgantt}
\begin{document}
\begin{ganttchart} {1}{10}
\ganttbar{Deliverable}{2}{2}
\ganttbar[inline label node/.append style={right=5mm}]{0.1,0.2}{2}{2}
\end{ganttchart}
\end{document}
bar inline label node/.append style. Thebaris missing – Jesse Sep 07 '14 at 17:30