Pgfgantt 刪除月份標籤

Pgfgantt 刪除月份標籤

我的專案持續了 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}

相關內容