API / Series/Line / LineSeries

Defined in: src/types/chart/line.ts:49

Extends

Type Parameters

Type Parameter Default type
T MeaningfulAny

Properties

Property Type Description
color? string The main color of the series (hex, rgba)
cursor? string You can set the cursor to "pointer" if you have click events attached to the series, to signal to the user that the points and lines can be clicked.
dashStyle? "Dash" | "DashDot" | "Dot" | "LongDash" | "LongDashDot" | "LongDashDotDot" | "ShortDash" | "ShortDashDot" | "ShortDashDotDot" | "ShortDot" | "Solid" Option for line stroke style
data LineSeriesData<T>[] -
dataLabels? BaseDataLabels Options for the series data labels, appearing next to each data point.
legend? BaseSeriesLegend & object Individual series legend options. Has higher priority than legend options in widget data
linecap? "butt" | "round" | "square" | "none" Option for line cap style
linejoin? "round" | "bevel" | "miter" | "unset" Defines the shape to be used at the corners of the line
lineWidth? number Pixel width of the graph line. Default 1 (for individual series). For series within the range slider, values are inherited from the individual series by default.
marker? PointMarkerOptions Options for the point markers of line series
name string The name of the series (used in legend, tooltip etc)
nullMode? "zero" | "skip" | "connect" Specifies how null or undefined values should be handled in the series. - 'connect': Connect points across null values (skip nulls in rendering) - 'zero': Treat null values as zero - 'skip': Omit the data point (creates gap in line) Default 'skip'
opacity? null | number Individual opacity for the line. For series within the range slider, values are inherited from the individual series by default.
rangeSlider? ChartSeriesRangeSliderOptions & LineSeriesLineBaseStyle Options to configure how this series appears and behaves in the Range Slider component.
tooltip? object Options for the tooltip that appears when the user hovers over a series or point.
tooltip.enabled? boolean Enable or disable the visibility of this series in the tooltip. Default true
tooltip.valueFormat? ValueFormat Formatting settings for tooltip value.
type "line" -
visible? boolean Initial visibility of the series
yAxis? number Y-axis index (when using two axes)