API / Series/Line / LineSeries
Defined in: src/types/chart/line.ts:35
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 |
lineWidth? |
number |
Pixel width of the graph line. Default 1 |
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? |
number |
Individual opacity for the line. |
rangeSlider? |
ChartSeriesRangeSliderOptions |
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.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) |
Previous
Next