Print Page | Close Window

Suggestion: Chart point color based on value

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Chart Control
Forum Description: Topics Related to Codejock Chart Control
URL: http://forum.codejock.com/forum_posts.asp?TID=18361
Printed Date: 17 June 2024 at 2:03am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Suggestion: Chart point color based on value
Posted By: joffrey
Subject: Suggestion: Chart point color based on value
Date Posted: 12 May 2011 at 12:05am
Good day!
 
I am trying to figure an easy way to implement a UI feature in bar charts that would paint the bar not in one color but with a varying color depending on its value.  Or maybe this couls be an easy suggestion?!?
 
For example: assuming our bars would go from 0 to 100 in value. Well, in this example, a bar of value 10 would start red and finish with a lighter red.  A bar of value 50 would start red and finish yellow.  A bar of value 100 would start red and finish green.  Of cource, steps would be defineable.
 
This would provide immediate visible feedback for example on failure or success of each points or elements in the chart.
 
Here is a demo of what I am saying:
 
Sample chart
 
Comments and suggestions are welcomed!
 
Thanks in advance
 
Joffrey Brouillet
 


-------------
Joffrey B.
Codejock MFC 15.0.2
On Win7 x64



Replies:
Posted By: Oleg
Date Posted: 13 May 2011 at 12:03am
Hi,

You can manually call pPoint->SetColor to specify colors you need.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net