%
% A fairly complicated example from section 2.9 of the package
% documentation. This reproduces an example from Wikipedia:
% http://en.wikipedia.org/wiki/Gantt_chart
%

\renewcommand\sfdefault{phv}
\renewcommand\mddefault{mc}
\renewcommand\bfdefault{bc}
\setganttlinklabel{s-s}{START-TO-START}
\setganttlinklabel{f-s}{FINISH-TO-START}
\setganttlinklabel{f-f}{FINISH-TO-FINISH}
\sffamily
\begin{ganttchart}[
    canvas/.append style={fill=none, draw=black!5, line width=.75pt},
    hgrid style/.style={draw=black!5, line width=.75pt},
    vgrid={*1{draw=black!5, line width=.5pt}},
    title/.style={draw=none, fill=none},
    title label font=\bfseries\footnotesize,
    title label node/.append style={below=5pt},
    include title in canvas=false,
    bar label node/.append style={left=2cm},
    bar/.append style={draw=none, fill=blue},
    bar incomplete/.append style={fill=blue},
    bar progress label font=\mdseries\footnotesize\color{black!70},
    group incomplete/.append style={fill=gray},
    %group label node/.append style={left=.3cm},
    group progress label font=\bfseries\small,
    link/.style={-latex, line width=1pt, red},
    %link label font=\scriptsize\bfseries,
    link label node/.append style={below left=-2pt and 0pt}
  ]{1}{6}
  \gantttitle[
    title label node/.append style={below left=7pt and -3pt}
  ]{Months:\quad1}{1}
  \gantttitlelist{2,...,6}{1} \\
  \ganttgroup[progress=57]{Milestone 1 A}{1}{2} \\
  \ganttbar[
    progress=80,
    name=M1A
  ]{\textbf{M 1 A} Activity A}{1}{1} \\
   \ganttbar[
    progress=15,
    name=M1B
  ]{\textbf{M 1 B} Activity B}{2}{2} \\[grid]
  \ganttgroup[progress=10]{Milestone 2}{2}{4} \\
  \ganttbar[ 
    progress=15,
    name=M2A
  ]{\textbf{M 2 A} Activity A}{2}{3} \\
  \ganttbar[progress=0]{\textbf{M 2 B} Activity B}{3}{4}
\end{ganttchart}
