Jump to content

Recommended Posts

Posted

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.

Posted

Hi Lena!

If I understand correctly ..

Try (but it is for the particular case, may help for further analysis..):

 

post-906-0-93126200-1428310536_thumb.png

post-906-0-54640100-1428310568_thumb.png

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!

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...