Skip to content

Documentation / @ripl/charts / BarChartSeriesOptions

Interface: BarChartSeriesOptions<TData> ​

Defined in: charts/src/charts/bar.ts:86

Configuration for an individual bar chart series.

Type Parameters ​

Type Parameter
TData

Properties ​

PropertyTypeDescriptionDefined in
color?stringExplicit series color; falls back to the chart's generated palette when omitted.charts/src/charts/bar.ts:90
idstringUnique identifier for the series, used for color assignment, legend, and data joins.charts/src/charts/bar.ts:88
labelstringHuman-readable series name shown in the legend and tooltips.charts/src/charts/bar.ts:94
valuenumber | NumericAccessor<TData>Accessor for the series' value at each data item, or a constant applied to every item.charts/src/charts/bar.ts:92
yAxis?stringThe id of the y-axis this series binds to. Defaults to the primary axis. Takes effect for vertical grouped bars; stacked/percent modes and horizontal orientation always render against the primary axis.charts/src/charts/bar.ts:100