← 所有範例

gantt-compact

---
displayMode: compact
---
gantt
  title Conference talk
  dateFormat YYYY-MM-DD
  axisFormat %b %d
  todayMarker off

%% `displayMode: compact` packs each section's rows: taken by start, a task
%% goes on the first row whose last task has ended by then, so the four
%% Writing tasks take two rows and the three Practice tasks take one. Without
%% it the chart would draw a row for every task. `section:1` and `section:2`
%% reveal every row band of their section. `todayMarker off` leaves out the
%% line that marks today, so the picture is the same whenever it is drawn.

  section Writing
  Outline           :done, outline, 2024-09-02, 3d
  Slides            :active, slides, after outline, 6d
  Speaker notes     :notes, 2024-09-05, 5d
  Final edit        :edit, after slides, 3d
  section Practice
  First dry run     :dry1, after notes, 1d
  Second dry run    :dry2, after edit, 1d
  Talk              :crit, talk, 2024-09-19, 1d

timeline:
  enter section:1 fade, enter outline fade, enter slides slide-right
  enter notes fade, enter edit slide-right
  enter section:2 fade, enter dry1 fade, enter dry2 fade
  enter talk fade, highlight talk glow