API / Series/Line / LineSeriesData

Defined in: src/core/types/chart/line.ts:10

Extends

Type Parameters

Type Parameter Default type
T MeaningfulAny

Properties

Property Type Description
annotation? ChartPointAnnotation Annotation displayed near this data point as a bubble with text label and optional marker. Useful for highlighting specific values, events, or adding contextual notes.
color? string Individual color for the data chunk (point in scatter, segment in pie, bar etc)
custom? T A reserved subspace to store options and values for customized functionality Here you can add additional data for your own event callbacks and formatter callbacks
label? string | number Data label value of the point. If not specified, the y value is used.
marker? object -
marker.color? string Fill color of the marker for this point
marker.states? object -
marker.states.normal? object -
marker.states.normal.enabled boolean -
x? string | number The x value of the point. Depending on the context , it may represents: - numeric value (for linear x axis) - timestamp value (for datetime x axis) - x axis category value (for category x axis). If the type is a string, then it is a category value itself. If the type is a number, then it is the index of an element in the array of categories described in xAxis.categories
y? null | string | number The y value of the point. Depending on the context , it may represents: - numeric value (for linear y axis) - timestamp value (for datetime y axis) - y axis category value (for category y axis). If the type is a string, then it is a category value itself. If the type is a number, then it is the index of an element in the array of categories described in yAxis[0].categories