Skip to content

Documentation / @ripl/charts / LineChartSeriesOptions

Interface: LineChartSeriesOptions<TData> ​

Defined in: charts/src/charts/line.ts:84

Configuration for an individual line 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/line.ts:88
idstringUnique identifier for the series, used for color assignment, legend, and data joins.charts/src/charts/line.ts:86
labelstring | ((item) => string)Series name shown in the legend and tooltips (or a per-item function).charts/src/charts/line.ts:92
lineStyle?LineStyleInput<TData>Line dash style: 'solid' (default), 'dashed', 'dotted', a custom dash array, or key-anchored spans each with their own style.charts/src/charts/line.ts:98
lineType?PolylineRendererRenderer used to draw the line (e.g. straight or curved); defaults to straight segments.charts/src/charts/line.ts:94
lineWidth?numberWidth in pixels of the series line.charts/src/charts/line.ts:96
marker?SymbolTypeMarker symbol shape: 'circle' (default), 'square', 'diamond', or 'triangle'. Non-circle symbols are sized to the same visual area as the circle.charts/src/charts/line.ts:104
markerRadius?numberRadius in pixels of each point marker. Defaults to 3.charts/src/charts/line.ts:102
markers?booleanShow point markers along the line. Defaults to true; set false to hide them (toggling animates them in/out).charts/src/charts/line.ts:100
valuenumber | NumericAccessor<TData>Accessor for the series' value at each data item, or a constant applied to every item.charts/src/charts/line.ts:90
yAxis?stringThe id of the y-axis this series binds to. Defaults to the primary axis.charts/src/charts/line.ts:106