GanttChart
data
GanttChart component
Terminal
$termuijs render gantt-chart
Installation
$ bunx termuijs add gantt-chart
Copies the source into src/components/gantt-chart/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { GanttChart } from '@termuijs/widgets'ts
new GanttChart(tasks: GanttTask[], style: Partial<Style> = {}, opts: GanttChartOptions = {})API Reference
GanttChart
| Prop | Type | Required | Description |
|---|---|---|---|
tasks | GanttTask[] | required | — |
taskHeight | number | optional | — |
taskGap | number | optional | — |
minTime | number | optional | — |
maxTime | number | optional | — |
barColor | Color | optional | — |
labelColor | Color | optional | — |