Interface: GanttChartOptions
Defined in: src/mobjects/graphing/GanttChart.ts:40
Options for creating a GanttChart.
Properties
axisColor?
optionalaxisColor:string
Defined in: src/mobjects/graphing/GanttChart.ts:56
Color for the axis, ticks and labels. Default: WHITE
barColors?
optionalbarColors:string| readonlystring[]
Defined in: src/mobjects/graphing/GanttChart.ts:50
Bar colors. Single color applies to all, array cycles by row. Default: palette.
barFillOpacity?
optionalbarFillOpacity:number
Defined in: src/mobjects/graphing/GanttChart.ts:52
Fill opacity of the bars. Default: 0.9
barStrokeWidth?
optionalbarStrokeWidth:number
Defined in: src/mobjects/graphing/GanttChart.ts:54
Stroke width of the bar outline. Default: 1.5
dependencyColor?
optionaldependencyColor:string
Defined in: src/mobjects/graphing/GanttChart.ts:74
Color for the dependency arrows. Default: WHITE
dependencyStrokeWidth?
optionaldependencyStrokeWidth:number
Defined in: src/mobjects/graphing/GanttChart.ts:76
Stroke width of the dependency arrows. Default: 2
formatTime()?
optionalformatTime: (value) =>string
Defined in: src/mobjects/graphing/GanttChart.ts:64
Formatter for a tick value. Default: ISO date for Date input, else the number.
Parameters
value
number
Returns
string
labelFontSize?
optionallabelFontSize:number
Defined in: src/mobjects/graphing/GanttChart.ts:70
Font size for the task labels. Default: 18
rowGap?
optionalrowGap:number
Defined in: src/mobjects/graphing/GanttChart.ts:48
Vertical gap between rows. Default: 0.2
rowHeight?
optionalrowHeight:number
Defined in: src/mobjects/graphing/GanttChart.ts:46
Height of each task bar. Default: 0.4
showDependencies?
optionalshowDependencies:boolean
Defined in: src/mobjects/graphing/GanttChart.ts:72
Whether to draw dependency arrows between tasks. Default: false
showLabels?
optionalshowLabels:boolean
Defined in: src/mobjects/graphing/GanttChart.ts:68
Whether to draw the per-row task labels. Default: true
showTimeAxis?
optionalshowTimeAxis:boolean
Defined in: src/mobjects/graphing/GanttChart.ts:58
Whether to draw the time axis line and ticks. Default: true
tasks
tasks:
GanttTask[]
Defined in: src/mobjects/graphing/GanttChart.ts:42
Tasks to render, top to bottom in row order.
timeLabelFontSize?
optionaltimeLabelFontSize:number
Defined in: src/mobjects/graphing/GanttChart.ts:66
Font size for the time-axis labels. Default: 18
timeTickCount?
optionaltimeTickCount:number
Defined in: src/mobjects/graphing/GanttChart.ts:62
Number of evenly spaced ticks when timeTicks is not given. Default: 5
timeTicks?
optionaltimeTicks:GanttTimeValue[]
Defined in: src/mobjects/graphing/GanttChart.ts:60
Explicit tick values on the time axis (overrides timeTickCount).
today?
optionaltoday:GanttTimeValue
Defined in: src/mobjects/graphing/GanttChart.ts:78
Optional "today" marker position (number or Date).
todayColor?
optionaltodayColor:string
Defined in: src/mobjects/graphing/GanttChart.ts:80
Color for the today marker. Default: RED
todayStrokeWidth?
optionaltodayStrokeWidth:number
Defined in: src/mobjects/graphing/GanttChart.ts:82
Stroke width of the today marker. Default: 2
width?
optionalwidth:number
Defined in: src/mobjects/graphing/GanttChart.ts:44
Visual width of the time axis. Default: 8