Skip to main content

Interface: AreaChartOptions

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

Options for creating an AreaChart.

Properties​

axes?​

optional axes: Axes

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

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:38

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


baseline?​

optional baseline: number

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

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


fillOpacity?​

optional fillOpacity: number

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

Fill opacity for the areas. Default: 0.4


lineWidth?​

optional lineWidth: number

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

Stroke width for the top line. Default: 3


seriesColors?​

optional seriesColors: string | string[]

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

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


seriesNames?​

optional seriesNames: string[]

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

Series names for the legend. Default: []


stacked?​

optional stacked: boolean

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

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:12

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:34

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:30

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


xValues?​

optional xValues: number[]

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

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


yLength?​

optional yLength: number

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

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:32

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