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 © 2024, Highsoft AS. All rights reserved.
Highcharts Stock v11.4.8 - Generated from branch master (commit 5468b76e66), on Thu Aug 29 2024 13:56:52 GMT+0200 (Central European Summer Time)