I'm putting together a Gantt chart with pgfgantt. I would like to use progress labels to annotate resources to tasks (using the standard bar label on the left of the chart as usual). This works well, but for the final tasks of my chart the labels extend well beyond the right edge of the chart and, indeed, beyond the margins of my page. I could, of course, try to make my chart smaller, but that would make it unreadable. So, instead, I am hoping to move the progress label to the left of the bar for these bars.
Having read the relevant parts of the pgfgantt documentation and a number of on-line articles, I have come up with the following code (only showing the relevant ganttbar command):
\ganttbar[progress label text={Resource 7},
bar progress label anchor=west]%
{Task Label}{12}{15}
This moves the start of the progress label nicely to the left of the bar, but the text of the label now overlaps with the bar. Instead, I would like to move the text fully to the left of the bar. I have then tried various variations of the below, but I'm clearly misunderstanding something here as none of these changes make any difference whatsoever:
\ganttbar[progress label text={Resource 7},
bar progress label node /.append style={anchor=east,left=.5cm},
bar progress label anchor=west]%
{Task Label}{12}{15}
The documentation isn't particularly helpful here and I do not know enough of PGF/TikZ to figure this out from source.
Any suggestions?
EDIT
Here's an MWE to make my problem more explicit:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{pdflscape}
\usepackage{pgfgantt}
\begin{document}
\begin{landscape}
\begin{ganttchart}%
[hgrid,
vgrid={draw=none, draw=none, dotted},
progress=100,
progress label text={}]%
{1}{36}
\gantttitle{Y1}{12} \gantttitle{Y2}{12} \gantttitle{Y3}{12} \\
\gantttitlelist{1,...,36}{1} \\
\ganttbar[progress label text={Resource1}]{Task1}{32}{36} \\
\ganttbar[progress label text={Resource2},
bar progress label anchor=west]{Task2}{32}{36} \\
\ganttbar[progress label text={Resource3},
bar progress label node /.append style={anchor=east,left=.5cm},
bar progress label anchor=west]{Task3}{32}{36}
\end{ganttchart}
\end{landscape}
\end{document}
This produces the following chart:
Task1 shows what happens with normal progress annotations. In my original document, these annotations go beyond the page margin. Tasks 2 and 3 show my unsuccessful attempts at moving that label to the left of the bar.
The image below shows a mock up of what I would like to achieve (ignore the fact that the label partially hides the grid line; that's an accidental effect of how I created the mock up).



/.style={left...in various variations, but this doesn't seem to do anything at all. – Steffen Zschaler Jul 20 '17 at 07:28