[Tex/LaTex] Vertical lines in pgfgantt

pgfgantttikz-pgf

I'm using the package pgfgantt to create Gantt charts. I've seen that with the "today" key one can have vertical line drawn in the chart. However, only one today key is allowed. How can I have several vertical lines? I want to draw a Gantt chart for several years, and I'm using the vertical grid to have dotted lines for each month, but I'd like to have a vertical solid line to split each of the years.

Best Answer

This is what I use, I'm not absolutely satisfied because with this solution I cannot have lines for months and weeks.

\begin{ganttchart}[
today=5,
today rule/.style= {blue, ultra thick},
vgrid={*{37}{dotted},*{1}{green,ultra thick},*{52}{dotted}}
]{ 49 }
\gantttitle{ 2013 }{ 38 }\gantttitle{ 2014 }{ 11 } \\
\gantttitlelist{  15 ,..., 52 }{1}\gantttitlelist{  1 ,..., 11 }{1}\\
\ganttmilestone { Commencement date }{ 0 }{ 1 } \\
\ganttgroup { Design }{ 2 }{ 4 } \\
\ganttbar { Supply 1 }{ 5 }{ 23 } \\
\ganttbar { Work 2  }{ 24 }{ 49 } \\
\ganttmilestone { Taking over }{ 49 }{ 49 }
\end{ganttchart}}

enter image description here