Pgfgant 删除月份标签

Pgfgant 删除月份标签

我的项目持续 6 年,我想实现一个在 A4 页面宽度下仍可读的纵向格式的甘特图。

在此处输入图片描述

我想删除甘特图月份行中的标签(数字),只保留图表中的空单元格pgfgantt

\documentclass{article}
\RequirePackage{pgfgantt} 
      
\begin{document}
   
\begin{ganttchart}[time slot format=isodate-yearmonth, 
    vgrid={dotted,draw=none,draw=none}, %hgrid=true, 
    x unit=0.22cm,          % NOTE: width for a single month
    y unit chart = 0.6cm, bar height=0.6,
    y unit title = 0.5cm, title height=1,
    include title in canvas=false,
    time slot unit=month
    ]{2024-09}{2030-09}  %project duration

    % temporal marks
    \gantttitlecalendar[title/.style={fill=black!30,draw=black}]{year} \\
    \gantttitlecalendar[title/.style={fill=black!20,draw=black}]{month} \\
\end{ganttchart}

    
\end{document}

相关内容