Change bar colour in HTML5 Chart

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?



leo.arouca's picture
Joined: Jul 12 2013 - 2:25am
Last seen: 1 year 10 months ago

1 Answer:


Are you use conditional style in your requirement?




ajinkya_c's picture
Joined: Aug 29 2012 - 6:13am
Last seen: 6 years 1 week ago