Change bar colour in HTML5 Chart

0

Hey guys,

 

I have a HTML5 bar chart, and i am changing its bar colors based on a variable that gets evaluated per group. And this variable output is a color if a field value is greater than 30. The issue is that my graph at the end has all bars with the same color.

This is the group header result (the HEX number is the colour

And the bar chart result is this (please note that the HEX color is on the message on top of the bar)

And the next line on the same bar chart

The variable is change per bar, but apparently the chart gets "Painted" after all the bars are create, so the last variable value stays.

 

Does anybody know a way around this?

Thanks!

leo

leo.arouca's picture
Joined: Jul 12 2013 - 2:25am
Last seen: 5 years 9 months ago

1 Answer:

0

Hi,

Are you use conditional style in your requirement?

Thanks,

Ajinkya

 

ajinkya_c's picture
976
Joined: Aug 29 2012 - 6:13am
Last seen: 2 years 5 months ago
Feedback
randomness