Hi All
I have a small problem. My application has a graph with multiple line
series. The number of series is unknown at design time. The users would like
to have the series color ramp between two colors (i.e. Green to Yellow or
Blue to Red). They would like to make the start and end colors user
selectable, but this is not essential.
Is there an easy way that I can implement a color ramp?
I'm using BDS 2006 (C++ personality) and TeeChart 7.06
Any help will be greatly appriciated! Jørgen
Series color
Hi Berntsen,
one way could be using a custom palette. You can see one example in the Demo Features project (included into the TeeChart Pro installation) under :
What0s New -> Themes -> Custom Palettes
one way could be using a custom palette. You can see one example in the Demo Features project (included into the TeeChart Pro installation) under :
What0s New -> Themes -> Custom Palettes
Pep Jorge
http://support.steema.com
http://support.steema.com
Hi Jørgen,
In that case, there's not a way to do it automatically, you will have to calculate the RGB color manually and then assign it to the Series using :
Series1.ValueColor[index]:=XColor;
or using the ColorRange method of the Series to assign same color for some range values.
In that case, there's not a way to do it automatically, you will have to calculate the RGB color manually and then assign it to the Series using :
Series1.ValueColor[index]:=XColor;
or using the ColorRange method of the Series to assign same color for some range values.
Pep Jorge
http://support.steema.com
http://support.steema.com
Hi Pep
This is excatly my original problem. I don't know how to calculate the RBG value manually. I looked at the www but could not find any code to do this. This was why I posted this question.
Has anybody reference to some code that can calculate the RGB values between to colors??
Any help will be greatly appriciated, Thanks Jørgen
This is excatly my original problem. I don't know how to calculate the RBG value manually. I looked at the www but could not find any code to do this. This was why I posted this question.
Has anybody reference to some code that can calculate the RGB values between to colors??
Any help will be greatly appriciated, Thanks Jørgen