Suggestion: Chart point color based on value |
Post Reply |
Author | |
joffrey
Newbie Joined: 28 February 2011 Location: Montreal, QC, C Status: Offline Points: 2 |
Post Options
Thanks(0)
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: Comments and suggestions are welcomed! Thanks in advance Joffrey Brouillet |
|
Joffrey B.
Codejock MFC 15.0.2 On Win7 x64 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
You can manually call pPoint->SetColor to specify colors you need.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |