Lena Posted April 4, 2015 Share Posted April 4, 2015 Hi. I have one series. 1.How I can change the color of this series? 2.Can I change the color at the points of the series?For example temperature series. If the temperature is above 50 degrees is the point of the red, the other green. Is it possible? Thank you. Link to comment Share on other sites More sharing options...
Sherzod Posted April 6, 2015 Share Posted April 6, 2015 Hi Lena!If I understand correctly .. Try (but it is for the particular case, may help for further analysis..): function chart.beforerender(sender, eOpts) { sender.series.items[0].renderer = function (sprite, record, attributes, index, store) { if (record) { if (record.data.B > 50) { attributes.fill = '#ff0000'; //red } else if (record.data.B <= 50) { attributes.fill = '#00ff00'; //green } //else { // attributes.fill = '#0000ff'; //} } return attributes; } } Best regards! Link to comment Share on other sites More sharing options...
Lena Posted April 6, 2015 Author Share Posted April 6, 2015 Thank you very much! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now