---
url: /guide/gantt.md
description: >-
  Turn the timeline month view into a Gantt chart with dependency arrows,
  progress bars and milestones.
---

# Gantt

```php
$scheduler
    ->progressAttribute('progress')        // 0–100
    ->dependenciesAttribute('depends_on')  // array of event keys
    ->defaultView(SchedulerView::TimelineMonth);
```

* Dependencies are drawn as arrows. When a task starts before the task it depends on has finished, its arrow turns red and dashed.
* Progress fills the bar.
* Zero-length events render as milestones.

The demo runs a Gantt chart and a [Kanban board](/kanban/overview) over the same `Task` model.
