Page 1 of 1

Invers Rainbow Chart?

Posted: Thu Aug 14, 2008 1:27 pm
by 9340622
Hi friends,
as you kan see at http://festplatte.aon.at/a/filemanager. ... tepok2.png there is the default rainbow style with red for 0 and blue for MAX. How can I use a inverted rainbow style (0 = blue and MAX = red?)? Can anyone here give me some advice? Thanks

Posted: Thu Aug 14, 2008 4:53 pm
by 9340622
:wink: HI,
I could find the Rainbow Colorarray in the source files and so I could create a InvRainbow Colorpalette and upgraded the source with the psInvRainbow PaletteStyle. Now it works fine.
But I could not find out how I can upgrade the source for the Editor with the psInvRainboww Style. Where I have to find this ?

Thanks for help
Walter

Posted: Fri Aug 15, 2008 1:26 pm
by 9340622
:wink:
Hi
I could successfully add the inv Rainbow Style to the Combo Box in the Editor also. Just add the Item in the ComboBox in TeeGriEd.pas.
Be aware that psCustom is the last style in the enum TTeePaletteStyle.

Cheers,
walter

Posted: Mon Aug 25, 2008 9:59 am
by narcis
Hi walter,

If you don't want to have to modify TeeChart's sources you can use your own custom palette as shown here.

Tks

Posted: Mon Aug 25, 2008 10:14 am
by 9340622
Thanks Narcis,
but the Rainbow has all the best colors, I would not be able to create better colors, than the rainbow has in it.
But thanks for your info.
walter