Lena Posted April 4, 2015 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. Quote
Sherzod Posted April 6, 2015 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! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.