Series Types and Data
Series are the heart of any Highcharts chart. They represent the data to be visualized and determine how that data appears on the chart.Understanding Series
A series is a collection of data points that share common properties and are visualized together. Each chart can contain multiple series.Series Configuration
- Basic Configuration
- Data Formats
- Series Events
Essential series options from the TypeScript Example:
SeriesOptions interface:Series Types
Highcharts provides numerous series types for different visualization needs:Line Series
Display data as connected points
Column Series
Vertical bars for category comparison
Bar Series
Horizontal bars for rankings
Area Series
Filled area under line
Pie Series
Part-to-whole relationships
Scatter Series
Individual points without connection
Point Configuration
Individual points within a series can have custom properties:Series Methods
Manipulate series dynamically after chart creation:- Add & Remove
- Update Data
- Visibility
- Update Options
Data Sorting
Control how data is sorted and matched during updates:Enable or disable data sorting for the series.
Whether to allow matching points by name in an update.
Determines what data value should be used to sort by.
Real-World Examples
TypeScript Interface Reference
Key interfaces fromSeriesOptions.ts:
All series extend the base
SeriesOptions interface with type-specific options. For example, pie charts add slicedOffset and line charts add step options.Best Practices
- Performance - For large datasets (>1000 points), use the boost module
- Data Structure - Use point objects for complex configurations, simple arrays for basic data
- Type Safety - Leverage TypeScript interfaces for compile-time validation
- Updates - Use
setData()for complete replacements,addPoint()for incremental updates
Next Steps
Axes Configuration
Configure X and Y axes for your series
Data Handling
Advanced data loading and processing
Chart Types
Explore all available chart types
API Reference
Complete series API documentation