API / Series/Line / LineSeries
Defined in: src/types/chart/line.ts:34
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? |
object |
Options for the series data labels, appearing next to each data point. |
dataLabels.allowOverlap? |
boolean |
Default false |
dataLabels.enabled? |
boolean |
Enable or disable the data labels Default true |
dataLabels.html? |
boolean |
Allows to use any html-tags to display the content. The element will be displayed outside the box of the SVG element. Default false |
dataLabels.padding? |
number |
Default 5 |
dataLabels.style? |
Partial <BaseTextStyle > |
- |
legend? |
ChartLegend & object |
Individual series legend options. Has higher priority than legend options in widget data |
linecap? |
"square" | "butt" | "round" | "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) |
opacity? |
number |
Individual opacity for the line. |
type |
"line" |
- |
visible? |
boolean |
Initial visibility of the series |
yAxis? |
number |
Y-axis index (when using two axes) |
Previous
Next