streamlinesocial / highcharts-regression

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

Having multiple series in same scatter plot and regression line for one of the series #66

Closed VivekTodur closed 6 years ago

VivekTodur commented 6 years ago

Thanks for the nice example. I would like to add multiple series to the scatter plot but want to show regression line for only one of them. How can I achieve it...??

Thanks in advance, Vivek

phpepe commented 6 years ago

I'm sorry to say that is not possible right now. There is a bug that prevents that case, just confirmed it. For multiple series, you can only set the regression for all series like shown here http://jsfiddle.net/asork1nb/ Tagged this as a bug, will solve it asap. Thanks for reporting this issue,

Ignacio Vazquez

2018-03-15 6:40 GMT-03:00 Vivek Todur notifications@github.com:

Thanks for the nice example. I would like to add multiple series to the scatter plot but want to show regression line for only one of them. How can I achieve it...??

Thanks in advance, Vivek

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/streamlinesocial/highcharts-regression/issues/66, or mute the thread https://github.com/notifications/unsubscribe-auth/AB_TLinTaj36nlepqR3snpOOHLrLPxlYks5tejbxgaJpZM4Sr0rk .

VivekTodur commented 6 years ago

Dear Ignacio, Sure, will wait for the fix, for timing I have tricked to get my work done,

Just added, regressionSettings: { type: 'polynomial', color: 'rgba(223, 183, 83, 0)', dashStyle: 'dash' },

And vola, line disappeared from the graph.

Best, Vivek

phpepe commented 6 years ago

haha, I like that workaround !