Series Configuration Options
Series options control the data, appearance, and behavior of individual data series within a chart. Source:ts/Core/Series/SeriesOptions.ts
Basic Configuration
Core Options
type
string
required
The series type (line, column, bar, pie, scatter, etc.)
name
string
The name of the series as shown in the legend and tooltip
data
Array<number | [number, number] | PointOptions>
required
The series data points
id
string
Unique identifier for the series, used with chart.get()
Appearance Options
color
ColorType
The main color of the series
colorIndex
number
Index into the default colors array (for styled mode)
lineWidth
number
default:"2"
Width of the line graph in pixels
dashStyle
string
default:"Solid"
Dash style for the graph line
opacity
number
default:"1"
Opacity of the series (0-1)
visible
boolean
default:"true"
Whether the series should be initially visible
showInLegend
boolean
default:"true"
Whether to show the series in the legend
Marker Options
marker
object
Options for point markers
Data Labels
dataLabels
object
Options for data labels on points
ts/Core/Series/DataLabelOptions.ts
Axis Assignment
xAxis
number | string
Index or ID of the X axis to use
yAxis
number | string
Index or ID of the Y axis to use
Stacking
stack
string | number
Stack identifier for grouping series
stacking
string
Stacking type: ‘normal’, ‘percent’, or undefined
Sorting & Grouping
dataSorting
object
Data sorting configuration
ts/Core/Series/SeriesOptions.ts:63
Events
events
object
Event handlers for series events
ts/Core/Series/SeriesOptions.ts:111
Animation
animation
boolean | AnimationOptions
default:"true"
Animation configuration for this series
Threshold & Zones
threshold
number
default:"0"
The Y value threshold for negative color
ts/Core/Series/SeriesOptions.ts:148
zones
Array<object>
Zone definitions for coloring parts of the series
States
states
object
Visual states for hover, select, and inactive
Point Options
point
object
Options for all points in the series
Complete Example
See Also
- Series Class API - Series methods and properties
- Point Options - Individual point configuration
- Plot Options - Global series defaults
- Events API - Series events