2

I want to make the ganttlink clear in this diagram (ain Microsoft Project Software), especially for the Activity B, C and D linked with Activity A. Kindly help me.

    \documentclass[12pt,border=12pt]{standalone}
    \usepackage{tikz,pgf,pgfgantt}
    \usepackage[utf8]{inputenc}
    \usepackage{xcolor} 

    \begin{document}
    \begin{ganttchart}[vgrid, hgrid, bar/.append style={orange}, link/.append style={thick}, link bulge=.5, link/.style={->, thick}]{1}{33}
   \gantttitle{Example 1 - Gantt Chart (in Days)}{33} \\
   \gantttitlelist{1,...,33}{1} \\
   \ganttgroup{Project Duration}{1}{33} \\
   \ganttbar{Activity A}{1}{2} \\
   \ganttbar{Activity B}{3}{6} \\
   \ganttbar{Activity C}{3}{5} \\
   \ganttbar{Activity D}{3}{7} \\
   \ganttbar{Activity E}{7}{8} \\
   \ganttbar{Activity F}{8}{11} \\
   \ganttbar{Activity G}{7}{9} \\
   \ganttbar{Activity H}{10}{15} \\
   \ganttbar{Activity I}{16}{22} \\
   \ganttbar{Activity J}{8}{11} \\
   \ganttbar{Activity K}{8}{10} \\
   \ganttbar{Activity L}{10}{10} \\
   \ganttbar{Activity M}{11}{14} \\
   \ganttbar{Activity N}{10}{15} \\
   \ganttbar{Activity O}{23}{31} \\
   \ganttbar{Activity P}{11}{18} \\
   \ganttbar{Activity Q}{32}{33} \\
   \ganttlink{elem1}{elem2}
   \ganttlink{elem1}{elem3}
   \ganttlink{elem1}{elem4}
   \ganttlink{elem2}{elem5}
   \ganttlink{elem4}{elem6}
   \ganttlink{elem2}{elem7}
   \ganttlink{elem7}{elem8}
   \ganttlink{elem4}{elem10}
   \ganttlink{elem4}{elem11}
   \ganttlink{elem7}{elem12}
   \ganttlink{elem11}{elem13}
   \ganttlink{elem7}{elem14}
   \ganttlink{elem11}{elem16}
   \ganttlink{elem3}{elem9}
   \ganttlink{elem5}{elem9}
   \ganttlink{elem6}{elem9}
   \ganttlink{elem8}{elem9}
   \ganttlink{elem9}{elem15}
   \ganttlink{elem10}{elem15}
   \ganttlink{elem12}{elem15}
   \ganttlink{elem13}{elem15}
   \ganttlink{elem14}{elem17}
   \ganttlink{elem15}{elem17}
   \ganttlink{elem16}{elem17}
   \end{ganttchart}
   \end{document}

enter image description here

The network diagram for this Gantt Chart is as follow: enter image description here

3

You can play with the link bulge and link mid parameters for the links. The link bulge define the horizontal extension of the links, while the link mid defines the fractional vertical distance between the two bars, where the link turns back. For example with

\ganttlink[link bulge=0.4]{elem1}{elem2}
\ganttlink[link bulge=1, link mid=0.3]{elem1}{elem3}
\ganttlink[link bulge=1.3]{elem1}{elem4}

you get

first few links of chart

Complete code

\documentclass[12pt,border=12pt]{standalone}
\usepackage{pgfgantt} % loads tikz which loads pgf and xcolor
\usepackage[utf8]{inputenc}

\begin{document}
\begin{ganttchart}[vgrid, hgrid, bar/.append style={orange}, link/.append style={thick}, link bulge=.5, link/.style={->, thick}]{1}{33}
\gantttitle{Example 1 - Gantt Chart (in Days)}{33} \\
\gantttitlelist{1,...,33}{1} \\
\ganttgroup{Project Duration}{1}{33} \\
\ganttbar{Activity A}{1}{2} \\
\ganttbar{Activity B}{3}{6} \\
\ganttbar{Activity C}{3}{5} \\
\ganttbar{Activity D}{3}{7} \\
\ganttbar{Activity E}{7}{8} \\
\ganttbar{Activity F}{8}{11} \\
\ganttbar{Activity G}{7}{9} \\
\ganttbar{Activity H}{10}{15} \\
\ganttbar{Activity I}{16}{22} \\
\ganttbar{Activity J}{8}{11} \\
\ganttbar{Activity K}{8}{10} \\
\ganttbar{Activity L}{10}{10} \\
\ganttbar{Activity M}{11}{14} \\
\ganttbar{Activity N}{10}{15} \\
\ganttbar{Activity O}{23}{31} \\
\ganttbar{Activity P}{11}{18} \\
\ganttbar{Activity Q}{32}{33} \\
\ganttlink[link bulge=0.4]{elem1}{elem2}
\ganttlink[link bulge=1, link mid=0.3]{elem1}{elem3}
\ganttlink[link bulge=1.3]{elem1}{elem4}
\ganttlink{elem2}{elem5}
\ganttlink{elem4}{elem6}
\ganttlink{elem2}{elem7}
\ganttlink{elem7}{elem8}
\ganttlink{elem4}{elem10}
\ganttlink{elem4}{elem11}
\ganttlink{elem7}{elem12}
\ganttlink{elem11}{elem13}
\ganttlink{elem7}{elem14}
\ganttlink{elem11}{elem16}
\ganttlink{elem3}{elem9}
\ganttlink{elem5}{elem9}
\ganttlink{elem6}{elem9}
\ganttlink{elem8}{elem9}
\ganttlink{elem9}{elem15}
\ganttlink{elem10}{elem15}
\ganttlink{elem12}{elem15}
\ganttlink{elem13}{elem15}
\ganttlink{elem14}{elem17}
\ganttlink{elem15}{elem17}
\ganttlink{elem16}{elem17}
\end{ganttchart}
\end{document}
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.