Interface: WaterfallChartOptions
Defined in: src/mobjects/graphing/WaterfallChart.ts:29
Options for creating a WaterfallChart.
Properties
axisColor?
optionalaxisColor:string
Defined in: src/mobjects/graphing/WaterfallChart.ts:63
Color for the axes and labels. Default: WHITE
barGap?
optionalbarGap:number
Defined in: src/mobjects/graphing/WaterfallChart.ts:49
Gap between adjacent bars. Default: 0.4
barStrokeWidth?
optionalbarStrokeWidth:number
Defined in: src/mobjects/graphing/WaterfallChart.ts:53
Stroke width of the bar outline. Default: 1.5
barWidth?
optionalbarWidth:number
Defined in: src/mobjects/graphing/WaterfallChart.ts:47
Width of each bar. Default: 0.6
connectorWidth?
optionalconnectorWidth:number
Defined in: src/mobjects/graphing/WaterfallChart.ts:51
Stroke width of the connector lines. Default: 1.5
decreaseColor?
optionaldecreaseColor:string
Defined in: src/mobjects/graphing/WaterfallChart.ts:37
Color for negative contributions. Default: RED.
fillOpacity?
optionalfillOpacity:number
Defined in: src/mobjects/graphing/WaterfallChart.ts:55
Fill opacity of the bars. Default: 0.9
height?
optionalheight:number
Defined in: src/mobjects/graphing/WaterfallChart.ts:59
Visual height of the chart area. Default: 5
includeYLabels?
optionalincludeYLabels:boolean
Defined in: src/mobjects/graphing/WaterfallChart.ts:67
Whether to include y-axis number labels. Default: true
includeYTicks?
optionalincludeYTicks:boolean
Defined in: src/mobjects/graphing/WaterfallChart.ts:65
Whether to include y-axis tick marks. Default: true
increaseColor?
optionalincreaseColor:string
Defined in: src/mobjects/graphing/WaterfallChart.ts:35
Color for positive contributions. Default: GREEN.
labelFontSize?
optionallabelFontSize:number
Defined in: src/mobjects/graphing/WaterfallChart.ts:71
Font size for the bar labels. Default: 18
labels?
optionallabels:string[]
Defined in: src/mobjects/graphing/WaterfallChart.ts:33
Labels for each bar. Default: []
showConnectors?
optionalshowConnectors:boolean
Defined in: src/mobjects/graphing/WaterfallChart.ts:41
Whether to draw connector lines between bars. Default: true
showLabels?
optionalshowLabels:boolean
Defined in: src/mobjects/graphing/WaterfallChart.ts:69
Whether to draw the per-bar labels. Default: true
showTotal?
optionalshowTotal:boolean
Defined in: src/mobjects/graphing/WaterfallChart.ts:43
Whether to append a total bar spanning 0 to the sum. Default: false
totalColor?
optionaltotalColor:string
Defined in: src/mobjects/graphing/WaterfallChart.ts:39
Color for the total bar. Default: BLUE.
totalLabel?
optionaltotalLabel:string
Defined in: src/mobjects/graphing/WaterfallChart.ts:45
Label for the appended total bar. Default: 'Total'
values
values:
number[]
Defined in: src/mobjects/graphing/WaterfallChart.ts:31
Sequential contributions (deltas), left to right.
width?
optionalwidth:number
Defined in: src/mobjects/graphing/WaterfallChart.ts:61
Visual width of the chart area. Default: 8
yLabelFontSize?
optionalyLabelFontSize:number
Defined in: src/mobjects/graphing/WaterfallChart.ts:73
Font size for the y-axis labels. Default: 20
yRange?
optionalyRange: [number,number,number]
Defined in: src/mobjects/graphing/WaterfallChart.ts:57
Y-axis range as [min, max, step]. Default: auto-scaled from the running totals.