Jump to content
We've recently updated our Privacy Statement, available here ×

Change bar colour in HTML5 Chart


leo.arouca

Recommended Posts

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

ScreenShot2013-08-08at2_25_05PM.png.988a3ae32c31223e29fdfdf6c30687e2.png

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

ScreenShot2013-08-08at2_18_00PM.png.253ef5bf09d8c0de669311299e0e1b9e.png

And the next line on the same bar chart

ScreenShot2013-08-08at2_18_18PM.png.60b4864ca33853b10229b146860f54b6.png

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

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...