Gantt

A timeline of task bars over a date range.

Research
Design
Build
Launch
Jan 1Jan 28

Milestones

Research
Design
Build
Launch
Kickoff
Beta
GA
Jan 1Jan 28

API reference

Inputs

PropTypeDefaultDescription
tasksreadonly GanttTask[][]Tasks to plot as horizontal bars across the date range.
milestonesreadonly GanttMilestone[][]Milestones to plot as diamond markers below the task bars.
startstring''ISO start date overriding the computed range minimum; empty derives it from tasks.
endstring''ISO end date overriding the computed range maximum; empty derives it from tasks.
localestringBCP 47 locale used for the axis bound labels. Defaults to the app's `LOCALE_ID`.
dateFormatIntl.DateTimeFormatOptionsDEFAULT_DATE_FORMAT`Intl.DateTimeFormat` options for the axis bound labels. Replaces the default wholesale, so `{ dateStyle: 'short' }` is valid (its options cannot be mixed with `month`/`day`).
emptyLabelstringText shown when there are no tasks to plot. Falls back to `provideBuiLabels`.

Types

GanttMilestone

FieldTypeDescription
namestringMilestone label shown in the left-hand row gutter and as the marker title.
datestringMilestone date as an ISO `YYYY-MM-DD` string; empty strings are ignored.

GanttTask

FieldTypeDescription
namestringTask label shown in the left-hand row gutter.
startstringTask start date as an ISO `YYYY-MM-DD` string; empty strings are ignored.
endstringTask end date as an ISO `YYYY-MM-DD` string; empty strings are ignored.
progress?numberCompletion percentage (0-100) shown as a darker overlay on the bar.
color?stringTailwind background class for the bar; defaults to `bg-primary`.

Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.