Skip to content

Documentation / @ripl/charts / AreaChartOptions

Interface: AreaChartOptions<TData>

Defined in: charts/src/charts/area.ts:145

Options for configuring an AreaChart.

Extends

Type Parameters

Type ParameterDefault type
TDataunknown

Properties

PropertyTypeDescriptionOverridesInherited fromDefined in
animation?boolean | Partial<ChartAnimationOptions>Animation configuration, or a boolean toggling all transitions. See ChartAnimationOptions.-CartesianChartOptions.animationcharts/src/core/chart.ts:89
autoRender?booleanWhether the chart renders automatically on construction and after every Chart.update. Defaults to true.-CartesianChartOptions.autoRendercharts/src/core/chart.ts:83
axis?ChartAxisInput<TData>Axis configuration for the x and y axes.CartesianChartOptions.axis-charts/src/charts/area.ts:163
crosshair?ChartCrosshairInputCrosshair overlay configuration (true/false or detailed crosshair options).CartesianChartOptions.crosshair-charts/src/charts/area.ts:157
dataTData[]The dataset rendered by the chart.--charts/src/charts/area.ts:147
format?ValueFormatInputFormat applied to marker values shown as text (tooltips and labels).--charts/src/charts/area.ts:167
grid?ChartGridInputBackground grid configuration (true/false or detailed grid options).CartesianChartOptions.grid-charts/src/charts/area.ts:155
keykeyof TData | ((item) => string)Accessor for each item's category key (the value plotted along the x axis).--charts/src/charts/area.ts:151
labels?ChartDataLabelsInputShow value labels next to each marker. true uses the default anchor; a string sets the anchor side.--charts/src/charts/area.ts:165
legend?ChartLegendInputLegend configuration (true/false, a position, or detailed legend options).CartesianChartOptions.legend-charts/src/charts/area.ts:161
navigator?boolean | NavigatorInteractionsEnables pan/zoom (and optionally brush) navigation on the plot. true turns on wheel-zoom and click-drag pan; an object configures each interaction individually. The chart auto-creates a DOMNavigator on its context and rescales the axis domains as the view changes — no data rebuild. Access the underlying controller via chart.navigator for imperative framing (centerOn/fitBounds) or brush-and-link.-CartesianChartOptions.navigatorcharts/src/core/cartesian.ts:137
padding?Partial<ChartPadding>Space reserved around the chart, per edge, in pixels.-CartesianChartOptions.paddingcharts/src/core/chart.ts:85
seriesAreaChartSeriesOptions<TData>[]The series to draw from each data item.--charts/src/charts/area.ts:149
stacked?booleanStack series cumulatively instead of overlaying them. Defaults to false.--charts/src/charts/area.ts:153
title?string | Partial<ChartTitleOptions>Chart title as plain text, or a ChartTitleOptions object for full control.-CartesianChartOptions.titlecharts/src/core/chart.ts:87
tooltip?ChartTooltipInputHover tooltip configuration (true/false or detailed tooltip options).CartesianChartOptions.tooltip-charts/src/charts/area.ts:159