Skip to main content
Participant
July 24, 2012
Answered

Horizontal bar with red for negative and green for positive?

  • July 24, 2012
  • 1 reply
  • 1519 views

I need to use CF9 to create horizontal bar chart where the intensity of the red (negative) is determined by the amount of negativity of the values and similarly the intensity of the green is based on the amount of positivity of the values.

See attached snapshot. Ignore the value label.

Can CF10 do this. I briefly looked but does not appear so.

Any advice? THANKS!!

This topic has been closed for replies.
Correct answer Stephen.Walker

Very much so.  It is just cfchart format=html and then you set the parameters either in CF using the json format or using an external 'stylesheet' (preferable).  See the other post on my site called ZingChart and ColdFusion.

1 reply

Inspiring
July 25, 2012

Yes, with the new charting engine it is possible to do this with rules.  Check out my example at http://www.cfuser.com/library/demos/index.cfm?do=charting&get=bcr.  You have to set the threshholds and the colors.  The colors are two part to allow for gradients. I have also just posted a write-up at http://www.cfuser.com/rules-preview-zoom-and-flash/

cf_thisAuthor
Participant
July 25, 2012

Stephen... thanks for the reply. It looks very capable. But it's not "out of the (CF) box" solution. Is it?

Stephen.WalkerCorrect answer
Inspiring
July 25, 2012

Very much so.  It is just cfchart format=html and then you set the parameters either in CF using the json format or using an external 'stylesheet' (preferable).  See the other post on my site called ZingChart and ColdFusion.