Hi,
I want to change the color of series, based on the point which is added dynamically.
I tried setting plotoptions for that series but it dint worked out for me.
Any help would be appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Also note that changing the plot options for a series after it has been rendered to the screen does not change the way the live series will appear. If you need to change the plot options after the series is rendered, you'd instead need to first remove() the series from the chart and then re-add it to the chart via the Chart.addSeries(Series) method.
Hi,
I want to change the color of series, based on the point which is added dynamically.
I tried setting plotoptions for that series but it dint worked out for me.
Any help would be appreciated.
The PlotOptions JavaDoc says:
Something like:
works for me, although the new plot option creation makes the marker style to change, and I see no way to get the current plot options to avoid this.
Yes, I have got using this. But one concern is the dynamic points which we add are getting lost.
You can use: series.setOption("color", "#08F");