Documentation Index
Fetch the complete documentation index at: https://mintlify.com/highcharts/highcharts/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Highcharts provides powerful APIs for updating charts dynamically. This guide shows you how to create interactive, real-time charts that respond to user input and live data.Live Data Updates
Create a chart that updates automatically with new data points every second.This example demonstrates:
- Adding points dynamically with
series.addPoint() - Creating a pulsating animation effect when new points are added
- Using chart events to trigger updates on load
- Accessibility announcements for new data points
Click to Add Points
An interactive scatter chart where users can add and remove points by clicking.Dynamic Chart Updates
Update chart configuration on-the-fly with button controls.HTML for the buttons
HTML for the buttons
Common Update Methods
chart.update()
chart.update()
Updates the entire chart configuration. Accepts an options object and optional redraw parameters.
series.addPoint()
series.addPoint()
Adds a new point to a series. Accepts data, redraw, shift, and animation parameters.
series.setData()
series.setData()
Replaces all data in a series at once.
point.update()
point.update()
Updates a single point’s properties.
point.remove()
point.remove()
Removes a point from the series.
Performance Tips
Best Practices
Batch Updates
When making multiple changes, batch them into a single update call to minimize redraws.
Memory Management
Use the
shift parameter in addPoint() to prevent unlimited memory growth in live charts.User Feedback
Provide visual or audio feedback when data updates, especially for accessibility.
Error Handling
Validate data before updating charts to prevent rendering errors.
Next Steps
Advanced Features
Explore annotations, drilldown, and custom plugins
Framework Integrations
Integrate Highcharts with React, Vue, and Angular