← 所有範例

gantt-core

gantt
  title Website relaunch
  dateFormat YYYY-MM-DD
  todayMarker off

%% A release plan, revealed a section at a time.
%% Both of this kind's timeline targets are named below: a task, under the id
%% its author wrote (`brief`, `wire`, `build`, `qa`, `launch`) or, for a task
%% written without one, under Mermaid's own `taskN` (`task1`, `task2`, ...,
%% counting only the tasks with no id); and a section, under the `section:N`
%% id the model mints for it in the order the section names first appear. A
%% section's id covers its row bands and its title, never its tasks.
%% `after` starts a task where the latest of the tasks it names ends; `until`
%% ends one where the earliest of them starts. `todayMarker off` leaves out the
%% line that marks today, so the picture is the same whenever it is drawn.

  section Discovery
  Project brief          :done, brief, 2024-03-04, 4d
  Stakeholder interviews :done, 2024-03-06, 5d
  section Design
  Wireframes             :active, wire, after brief, 6d
  Visual design          :2024-03-18, 5d
  section Build
  Front end              :crit, build, after wire, 8d
  Content migration      :2024-03-16, until qa
  QA pass                :qa, after build, 3d
  Launch                 :milestone, launch, after qa, 0d

timeline:
  enter section:1 fade, enter brief fade, enter task1 fade
  enter section:2 fade, enter wire slide-right, enter task2 slide-right
  enter section:3 fade, enter build slide-right, enter task3 slide-right
  enter qa fade, highlight build outline
  enter launch fade, unhighlight build, highlight launch glow