Interface: AreaChartOptions
Defined in: src/mobjects/graphing/AreaChart.ts:13
Options for creating an AreaChart.
Properties
axes?
optionalaxes:Axes
Defined in: src/mobjects/graphing/AreaChart.ts:35
An existing Axes to plot onto. When omitted, one is built from the data.
axisColor?
optionalaxisColor:string
Defined in: src/mobjects/graphing/AreaChart.ts:45
Color for the axes when auto-building. Default: white
baseline?
optionalbaseline:number
Defined in: src/mobjects/graphing/AreaChart.ts:21
Baseline each (unstacked) area fills down to. Default: 0
fillOpacity?
optionalfillOpacity:number
Defined in: src/mobjects/graphing/AreaChart.ts:31
Fill opacity for the areas. Default: 0.4
legendFontSize?
optionallegendFontSize:number
Defined in: src/mobjects/graphing/AreaChart.ts:29
Font size for the legend labels. Default: 18
lineWidth?
optionallineWidth:number
Defined in: src/mobjects/graphing/AreaChart.ts:33
Stroke width for the top line. Default: 3
seriesColors?
optionalseriesColors:string|string[]
Defined in: src/mobjects/graphing/AreaChart.ts:23
Series colors for fills and lines. Single color or array. Default: Manim palette
seriesNames?
optionalseriesNames:string[]
Defined in: src/mobjects/graphing/AreaChart.ts:25
Series names for the legend. Default: []
showLegend?
optionalshowLegend:boolean
Defined in: src/mobjects/graphing/AreaChart.ts:27
Show a legend of the series names. Default: true when seriesNames is given.
stacked?
optionalstacked:boolean
Defined in: src/mobjects/graphing/AreaChart.ts:19
Stack the series so each area rests on the sum below it. Default: false
values
values:
number[] |number[][]
Defined in: src/mobjects/graphing/AreaChart.ts:15
Y-values as [series][point]. A flat array is treated as a single series.
xLength?
optionalxLength:number
Defined in: src/mobjects/graphing/AreaChart.ts:41
Visual length of the x-axis when auto-building axes. Default: 8
xRange?
optionalxRange: [number,number] | [number,number,number]
Defined in: src/mobjects/graphing/AreaChart.ts:37
X-axis range override as [min, max] or [min, max, step].
xValues?
optionalxValues:number[]
Defined in: src/mobjects/graphing/AreaChart.ts:17
Shared x-values, one per point. Default: indices 0, 1, 2, ...
yLength?
optionalyLength:number
Defined in: src/mobjects/graphing/AreaChart.ts:43
Visual length of the y-axis when auto-building axes. Default: 6
yRange?
optionalyRange: [number,number] | [number,number,number]
Defined in: src/mobjects/graphing/AreaChart.ts:39
Y-axis range override as [min, max] or [min, max, step].