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.
API Methods
Highcharts provides a comprehensive set of methods for manipulating charts, series, axes, and points at runtime.Global Methods
Highcharts.chart()
Create a new chart instance.renderTo(string | HTMLElement) - Container element or IDoptions(Object) - Chart configurationcallback(Function) - Optional callback after chart load
Highcharts.Chart
Highcharts.stockChart()
Create a Highstock chart (requires Highstock).Highcharts.mapChart()
Create a Highmaps chart (requires Highmaps).Highcharts.ganttChart()
Create a Gantt chart (requires Gantt module).Chart Methods
Methods available on the chart instance.chart.addSeries()
Add a new series to the chart.options(Object) - Series configurationredraw(Boolean) - Whether to redraw (default: true)animation(Boolean | Object) - Animation options
Highcharts.Series
chart.addAxis()
Add a new axis to the chart.options(Object) - Axis configurationisX(Boolean) - True for X axis, false for Y axisredraw(Boolean) - Whether to redrawanimation(Boolean | Object) - Animation options
Highcharts.Axis
chart.get()
Get an axis, series, or point by ID.id(String) - ID of the element
Highcharts.Axis | Highcharts.Series | Highcharts.Point | undefined
chart.update()
Update chart options.options(Object) - Options to updateredraw(Boolean) - Whether to redraw (default: true)oneToOne(Boolean) - One-to-one update mode (default: false)animation(Boolean | Object) - Animation options
chart.redraw()
Redraw the chart.animation(Boolean | Object) - Animation options
chart.reflow()
Reflow the chart to fit container.chart.setSize()
Resize the chart.width(Number | null) - New width in pixelsheight(Number | null) - New height in pixelsanimation(Boolean | Object) - Animation options
chart.setTitle()
Update title and subtitle.title(Object) - Title optionssubtitle(Object) - Subtitle optionsredraw(Boolean) - Whether to redraw (default: true)
chart.showLoading() / hideLoading()
Show or hide loading indicator.message(String) - Loading message
chart.destroy()
Destroy the chart and free resources.chart.exportChart()
Export the chart (requires exporting module).options(Object) - Export optionschartOptions(Object) - Temporary chart options for export
chart.print()
Print the chart.chart.getSVG()
Get SVG string of the chart.options(Object) - Temporary chart options
Series Methods
series.addPoint()
Add a point to the series.options(Number | Array | Object) - Point dataredraw(Boolean) - Whether to redraw (default: true)shift(Boolean) - Remove first point (default: false)animation(Boolean | Object) - Animation options
series.removePoint()
Remove a point by index.index(Number) - Point indexredraw(Boolean) - Whether to redraw (default: true)animation(Boolean | Object) - Animation options
series.setData()
Replace all series data.data(Array) - New data arrayredraw(Boolean) - Whether to redraw (default: true)animation(Boolean | Object) - Animation optionsupdatePoints(Boolean) - Update existing points (default: true)
series.update()
Update series options.options(Object) - Options to updateredraw(Boolean) - Whether to redraw (default: true)
series.remove()
Remove the series.redraw(Boolean) - Whether to redraw (default: true)animation(Boolean | Object) - Animation options
series.show() / hide()
Show or hide the series.series.setVisible()
Set series visibility.visible(Boolean) - Visibility stateredraw(Boolean) - Whether to redraw (default: true)
Axis Methods
axis.setExtremes()
Set axis range.min(Number | null) - New minimummax(Number | null) - New maximumredraw(Boolean) - Whether to redraw (default: true)animation(Boolean | Object) - Animation optionseventArguments(Object) - Custom event data
axis.update()
Update axis options.options(Object) - Options to updateredraw(Boolean) - Whether to redraw (default: true)
axis.setTitle()
Set axis title.title(Object) - Title optionsredraw(Boolean) - Whether to redraw (default: true)
axis.setCategories()
Set axis categories.categories(Array) - Category namesredraw(Boolean) - Whether to redraw (default: true)
axis.addPlotLine() / addPlotBand()
Add plot line or band.options(Object) - Plot line/band options
Highcharts.PlotLineOrBand
axis.removePlotLine() / removePlotBand()
Remove plot line or band by ID.id(String) - Plot line/band ID
axis.toValue() / toPixels()
Convert between axis values and pixel positions.valueorpixel(Number) - Value to convertpaneCoordinates(Boolean) - Pane-relative coordinates
axis.remove()
Remove the axis.redraw(Boolean) - Whether to redraw (default: true)
Point Methods
point.update()
Update point data.options(Number | Object) - New value or optionsredraw(Boolean) - Whether to redraw (default: true)animation(Boolean | Object) - Animation options
point.remove()
Remove the point.redraw(Boolean) - Whether to redraw (default: true)animation(Boolean | Object) - Animation options
point.select()
Select or deselect the point.selected(Boolean) - Selection stateaccumulate(Boolean) - Add to selection (default: false)
See Also
- Chart Class - Chart properties and events
- Series Class - Series properties
- Axis Class - Axis properties
- Point Class - Point properties
- Events API - Event handling