How can I apply different colors to different labels


« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Pravallika on 19th November 2012
Hi,

    I have to apply different colors for different labels on x-axis. For example, I have 3 labels named as label1, label2 and label3 on x-axis. I have to give red color for label1, green for label2 and blue for label3.

    Now how can I apply these colors in stacked and simple bar chart?

Thanks in advance
Posted by RGraph support on 19th November 2012
Hi,

The Bar chart supports this with the chart.labels.colors option which can be an array of colors.
Posted by Pravallika on 19th November 2012
Thanks for your reply. And I also want to apply particular label color for corresponding bar.
Posted by Pravallika on 20th November 2012
  I get my requirement by using chart.colors.sequential property.

Thanks

Add a reply

 




« Back to message list
RGraph on social media