I've looked at the documentation, search on the forum, etcetera… and found no answer to my question.
I'm writing a Gantt chart,
\begin{ganttchart}[%
x unit=.4cm,
y unit title=0.5cm,
y unit chart=0.6cm,
vgrid={*2{draw=none}, *1{dotted}},
time slot format=isodate-yearmonth,
compress calendar,
title/.append style={draw=none, fill=blue!50!black},
title label font=\sffamily\bfseries\color{white},
title label node/.append style={below=-1.6ex},
title left shift=.05,
title right shift=-.05,
title height=1,
bar/.append style={draw=none, rounded corners=2pt, fill=OliveGreen!75},
bar height=.6,
bar label font=\normalsize\color{black!70},
group label node/.append style={%
align=left,
text width=\widthof{L\'imites impuestos por mediciones de presici\'on},
},
group right shift=0,
group top shift=.6,
group height=.3,
group peaks height=.2,
bar incomplete/.append style={fill=Maroon},
%% Other customisation
newline shortcut=true,
bar label node/.append style={align=left},
]{2014-10}{2017-09}
\gantttitlecalendar{year} \\
\ganttgroup{Primer Periodo}{2014-10}{2015-09} \\
\ganttbar[%
progress=40,
bar progress label node/.append style={right=1ex},
name=ModTeo
]{Construcci\'on de modelos de part\'iculas
}{2014-10}{2015-01} \\
\ganttset{progress label text={}, link/.style={black, -to}}
\ganttlinkedbar[%
progress=0,
name=LimLHC,
]{L\'imites impuestos por mediciones del LHC}{2015-03}{2015-05} \\
\ganttlinkedbar[%
progress=0,
name=LimPres,
]{L\'imites impuestos por mediciones de presici\'on}{2015-06}{2015-08}\\
\ganttlinkedmilestone[%
name=MS1,
]{Predicciones y L\'imites Experimentales}{2015-8} \\
\ganttgroup{Segundo Periodo}{2015-10}{2016-09} \\
\ganttbar[progress=0,name=Mez]{Mezcla}{2015-9}{2016-01} \\
\ganttlink{MS1}{Mez}
\ganttlinkedbar[%
progress=0
]{An\'alisis de anomal\'ias en los modelos}{2016-3}{2016-06} \\
\end{ganttchart}
resulting on the chart
However, I'd like to use a "canvas" color for highlight the vacations… something like this
Does anyone know how to achieve this? or at least say whether it is possible… Thank you!
Cheers.
Best Answer
I have achieved something like this in the past. It's a little bit dirty (I had to enter the widths manually, and add a -11pt length to extend the shading to the bottom of the current line), but it was good enough for my needs.
Also, you may need to use
\begin{scope}[on background layer]
. That's what I used in my original document.