Skip to content

Documentation / @ripl/charts / LineChartSeriesOptions

Interface: LineChartSeriesOptions<TData>

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

Configuration for an individual line chart series.

Type Parameters

Type Parameter
TData

Properties

PropertyTypeDescriptionDefined in
color?stringExplicit series colour; falls back to the chart's generated palette when omitted.charts/src/charts/line.ts:98
idstringUnique identifier for the series, used for colour assignment, legend, and data joins.charts/src/charts/line.ts:96
labelstring | ((item) => string)Series name shown in the legend and tooltips (or a per-item function).charts/src/charts/line.ts:102
lineStyle?LineStyleLine dash style: 'solid' (default), 'dashed', 'dotted', or a custom dash array.charts/src/charts/line.ts:108
lineType?PolylineRendererRenderer used to draw the line (e.g. straight or curved); defaults to straight segments.charts/src/charts/line.ts:104
lineWidth?numberWidth in pixels of the series line.charts/src/charts/line.ts:106
markerRadius?numberRadius in pixels of each point marker. Defaults to 3.charts/src/charts/line.ts:112
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:110
valuenumber | NumericAccessor<TData>Accessor for the series' value at each data item, or a constant applied to every item.charts/src/charts/line.ts:100