streamlinesocial / highcharts-regression

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

Error when having multiple line charts #71 #66 #74

Open ruidiasbraga opened 6 years ago

ruidiasbraga commented 6 years ago

Error when having multiple line charts with ON and OFF Regression I found a problem when adding more then one series to the regression library, I need to have all ON to have regression and cannot be selective regarding which one I would like to have a regression line. I made a few changes to prevent adding undefined series in the case of regression being OFF and when the last series was undefined the validation seemed to not address this issue, so, I changed it as well (concat). With this I can now have a mix of series with regression ON and OFF without any problem.

check issue https://github.com/streamlinesocial/highcharts-regression/issues/71