dmnd / highcharts-regression

Linear and non-linear regression support for highcharts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

About

Linear and non-linear regression support for highcharts

License:MIT License


Languages

Language:JavaScript 100.0%