The BarGanttChart
component visualizes time intervals across multiple categories, making it ideal for illustrating schedules, timelines, or task durations. It displays bars that span from a start to an end value on a continuous axis, grouped by labeled categories.
labelOnYAxis?: boolean
If true
, the category labels will be displayed on the Y-axis, and bars will extend horizontally along the X-axis (typical Gantt chart layout).
Default is false
, which would render a vertical layout with labels on the X-axis.
marks: Array<object>
(required)Defines the time intervals for each bar. Each object must include:
label: string
The category label associated with the time interval (e.g., task or job name).
start: number
The starting value (usually representing time or progress) of the bar.
end: number
The ending value of the bar. The bar will visually span from start
to end
.
Additional ChartMarkProps
can also be provided for customization.
BarGanttChart
is ideal for: