For initial declarative chart setup. Download as ZIP or JSON.
Highcharts.setOptions({
});
Highcharts.stockChart({
});
For modifying the chart at runtime. See the class reference.
These pages outline the chart configuration options, and the methods and properties of Highcharts objects.
Feel free to search this API through the search bar or the navigation tree in the sidebar.
Trendline (linear regression) fits a straight line to the selected data
using a method called the Sum Of Least Squares. This series requires the
linkedTo
option to be set.
Configuration options for the series are given in three levels:
trendline
series are defined in
plotOptions.trendline.Highcharts.chart('container', {
plotOptions: {
series: {
// general options for all series
},
trendline: {
// shared options for all trendline series
}
},
series: [{
// specific options for this series instance
type: 'trendline'
}]
});
TypeScript:
type
property.if (chart.options.series?.[0]?.type === trendline) {
// code specific to the trendline series
}
Copyright © 2025, Highsoft AS. All rights reserved.
Highcharts Stock v12.3.0 - Generated from branch master (commit ade4907f7b), on Sat Jun 21 2025 08:10:02 GMT+0200 (Central European Summer Time)