2

目前我已经制作了甘特图,但正如您从图像中看到的那样,您无法正确看到它并且看起来很乱。我试图调整,但没有运气。如果有人可以帮助我使它看起来更好,请。这是我第一次尝试创建甘特图。我也尝试过制作它,以便它同时显示一条活动线,指向我们当前处于进程的位置。此外,如果任务少于一周,则可以在不使甘特图过长的情况下显示这一点。有什么建议么?

http://imgur.com/a/TJqgl

\documentclass[final]{cmpreport}

  \subsection{Gantt Chart \& Critical Path}
    \begin{sideways}
      \newganttchartelement{voidbar}{
    voidbar/.style={
        draw=black,
        top color=black!25,
        bottom color=black!23
    }}
    \begin{ganttchart}[x unit=0.27cm, vgrid, title label font=\footnotesize,
        canvas/.style={draw=black, dotted}]{1}{44}
        \gantttitlelist{1,...,22}{2} \\


        %the elements, bars and milestones, are identified as elem0, elem1, etc

        %elem1
        \ganttbar{A.Project Assigned}{1}{2}     \\  %elem0  
        \ganttbar{B. Create Plan}{1}{4}    \\  %elem1 
        \ganttbar{C. Ambassador Requirements}{5}{6}              \\  %elem2
        \ganttbar{D. Recruit Ambassadors} {7}{8} \\
        \ganttbar{E. Communicate with Ambassadors } {9}{10} \\
        \ganttbar {F. Set Marketing Objectives} {11}{11} \\
        \ganttbar {G. Design, publish \& evaluate survey} {11}{14} \\
        \ganttbar {H. Design Marketing Comms} {15}{18} \\
        \ganttbar {I. Execute Plan} {19}{24} \\
        \ganttbar {J. Set Webpage Objectives} {25}{25} \\
        \ganttbar {K. Website Research} {25}{26} \\
        \ganttbar {L. Website Prototype} {27}{28} \\
        \ganttbar {M. Approve design/develop} {28}{29} \\
        \ganttbar {N. Test \& evaluate} {30}{30} \\
        \ganttbar {O. Venue \& theme} {31}{34} \\
        \ganttbar {P. Choose Catering \& Entertainment } {35}{36} \\
        \ganttbar {Q. Final Presentation} {37}{37} \\

        \ganttlink{elem0}{elem2}
        \ganttlink{elem1}{elem2}
        \ganttlink{elem2}{elem3}
        \ganttlink{elem5}{elem6}
        \ganttlink{elem8}{elem9}
        \ganttlink{elem9}{elem10}
        \ganttlink{elem9}{elem11}
    \end{ganttchart}
\end{sideways}
4

1 回答 1

0

我知道这是一个非常古老的问题,但今天我开始学习pgfgantt,我发现可以expand chart选择ganttchart调整图表大小。例子:

expand chart=1.2\textwidth

pgfgantt包文档 中的更多信息:http: //bay.uchicago.edu/CTAN/graphics/pgf/contrib/pgfgantt/pgfgantt.pdf

于 2021-03-12T03:17:30.423 回答