streamlinesocial / highcharts-regression

Linear and non-linear regression support for highcharts
MIT License
73 stars 64 forks source link

Feature/power decimals #76

Open j15e opened 6 years ago

j15e commented 6 years ago

4 decimal would result into y = 1.8087e-5x^2.8897

I decided to use toExponential for A factor as it is almost always a very small number (I think?). Maybe it should cover other cases better where A in A * x^B would be larger, if you know it is possible.