JS API Reference

Welcome to the Highstock JS Options 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.

series.linearregressionintercept.params.xAxisUnit

Unit (in milliseconds) for the x axis distances used to compute the regression line paramters (slope & intercept) for every range. In Highstock the x axis values are always represented in milliseconds which may cause that distances between points are "big" integer numbers.

Highstock's linear regression algorithm (least squares method) will utilize these "big" integers for finding the slope and the intercept of the regression line for each period. In consequence, this value may be a very "small" decimal number that's hard to interpret by a human.

For instance: xAxisUnit equealed to 86400000 ms (1 day) forces the algorithm to treat 86400000 as 1 while computing the slope and the intercept. This may enchance the legiblitity of the indicator's values.

Default value is the closest distance between two data points.