Skip to content

Documentation / @ripl/charts / GanttChartOptions

Interface: GanttChartOptions<TData> ​

Defined in: charts/src/charts/gantt.ts:94

Options for configuring a GanttChart.

Extends ​

Type Parameters ​

Type ParameterDefault type
TDataunknown

Properties ​

PropertyTypeDescriptionInherited fromDefined in
animation?boolean | Partial<ChartAnimationOptions>Animation configuration, or a boolean toggling all transitions. See ChartAnimationOptions.BaseChartOptions.animationcharts/src/core/chart.ts:128
autoRender?booleanWhether the chart renders automatically on construction and after every Chart.update. Defaults to true.BaseChartOptions.autoRendercharts/src/core/chart.ts:122
axis?ChartAxisInput<TData>Axis configuration for the category and time axes.-charts/src/charts/gantt.ts:120
borderRadius?numberCorner radius in pixels applied to each task bar. Defaults to 3.-charts/src/charts/gantt.ts:128
colorBy?keyof TData | ((item) => string)Optional per-item color accessor; falls back to the generated palette.-charts/src/charts/gantt.ts:106
dataTData[]The tasks rendered as time-spanning bars.-charts/src/charts/gantt.ts:96
dependencies?keyof TData | ((item) => string[])Accessor for the keys of the tasks each task depends on. When provided, a curved connector is drawn from every predecessor task's end to this task's start (finish-to-start). Return an empty array, or omit the option entirely, for a task with no dependencies.-charts/src/charts/gantt.ts:114
description?stringAccessible description announced by screen readers (sets the rendering element's ARIA label). Defaults to the title text.BaseChartOptions.descriptioncharts/src/core/chart.ts:132
endkeyof TData | ((item) => Date)Accessor for each task's end date.-charts/src/charts/gantt.ts:104
format?ValueFormatInputFormat applied to the numeric progress value shown in the task tooltip. Defaults to a percentage.-charts/src/charts/gantt.ts:122
grid?ChartGridInputBackground grid configuration (true/false or detailed grid options).-charts/src/charts/gantt.ts:116
keykeyof TData | ((item) => string)Accessor for each task's unique key (used for color assignment and data joins).-charts/src/charts/gantt.ts:98
labelkeyof TData | ((item) => string)Accessor for each task's label shown on the category axis.-charts/src/charts/gantt.ts:100
padding?PaddingInputSpace reserved around the chart, in pixels. A single number applies to all four edges; a [top, right, bottom, left] tuple or a partial { top, right, bottom, left } object sets individual edges, leaving unspecified edges at the default. Defaults to 16.BaseChartOptions.paddingcharts/src/core/chart.ts:124
progress?NumericAccessor<TData>Accessor for each task's completion ratio (0–1), drawn as a progress overlay.-charts/src/charts/gantt.ts:108
showToday?booleanDraw a marker line at the current date. Defaults to true.-charts/src/charts/gantt.ts:124
startkeyof TData | ((item) => Date)Accessor for each task's start date.-charts/src/charts/gantt.ts:102
theme?string | ThemeTheme for this chart: a registered name ('light'/'dark'/'auto'), or a Theme. Falls back to the module default (see setDefaultTheme).BaseChartOptions.themecharts/src/core/chart.ts:130
title?string | Partial<ChartTitleOptions>Chart title as plain text, or a ChartTitleOptions object for full control.BaseChartOptions.titlecharts/src/core/chart.ts:126
todayColor?stringColor of the "today" marker line.-charts/src/charts/gantt.ts:126
tooltip?ChartTooltipInputHover tooltip configuration (true/false or detailed tooltip options).-charts/src/charts/gantt.ts:118