Skip to main content

Interface: AreaChartOptions

Defined in: src/mobjects/graphing/AreaChart.ts:13

Options for creating an AreaChart.

Properties​

axes?​

optional axes: Axes

Defined in: src/mobjects/graphing/AreaChart.ts:35

An existing Axes to plot onto. When omitted, one is built from the data.


axisColor?​

optional axisColor: string

Defined in: src/mobjects/graphing/AreaChart.ts:45

Color for the axes when auto-building. Default: white


baseline?​

optional baseline: number

Defined in: src/mobjects/graphing/AreaChart.ts:21

Baseline each (unstacked) area fills down to. Default: 0


fillOpacity?​

optional fillOpacity: number

Defined in: src/mobjects/graphing/AreaChart.ts:31

Fill opacity for the areas. Default: 0.4


legendFontSize?​

optional legendFontSize: number

Defined in: src/mobjects/graphing/AreaChart.ts:29

Font size for the legend labels. Default: 18


lineWidth?​

optional lineWidth: number

Defined in: src/mobjects/graphing/AreaChart.ts:33

Stroke width for the top line. Default: 3


seriesColors?​

optional seriesColors: string | string[]

Defined in: src/mobjects/graphing/AreaChart.ts:23

Series colors for fills and lines. Single color or array. Default: Manim palette


seriesNames?​

optional seriesNames: string[]

Defined in: src/mobjects/graphing/AreaChart.ts:25

Series names for the legend. Default: []


showLegend?​

optional showLegend: boolean

Defined in: src/mobjects/graphing/AreaChart.ts:27

Show a legend of the series names. Default: true when seriesNames is given.


stacked?​

optional stacked: 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?​

optional xLength: number

Defined in: src/mobjects/graphing/AreaChart.ts:41

Visual length of the x-axis when auto-building axes. Default: 8


xRange?​

optional xRange: [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?​

optional xValues: number[]

Defined in: src/mobjects/graphing/AreaChart.ts:17

Shared x-values, one per point. Default: indices 0, 1, 2, ...


yLength?​

optional yLength: number

Defined in: src/mobjects/graphing/AreaChart.ts:43

Visual length of the y-axis when auto-building axes. Default: 6


yRange?​

optional yRange: [number, number] | [number, number, number]

Defined in: src/mobjects/graphing/AreaChart.ts:39

Y-axis range override as [min, max] or [min, max, step].