Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.25 KB

README.md

File metadata and controls

33 lines (22 loc) · 1.25 KB

Highcharts Regression

Linear and non-linear regression support for highcharts. Allows you to add regression series to any existing series on your chart. Calculates the r-squared value (coefficient of determination) and optionally prints it on the legend. If Linear or Polynomial regression is selected, you can print the equation on the legend.

For a basic usage just add this property to the series json

regression: true

And for advanced configuration you can add options to

regressionSettings: {}

Regression settings:

  • type (String) Regression type: 'linear' ,'exponential', 'polynomial', 'logarithmic', 'loess'
  • order (Int) If regression type is polynomial set the order

Examples: