Invers Rainbow Chart?

Ideas and wishes for TeeChart
Post Reply
wschrabi
Newbie
Newbie
Posts: 12
Joined: Mon Jan 17, 2005 5:00 am

Invers Rainbow Chart?

Post by wschrabi » Thu Aug 14, 2008 1:27 pm

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

wschrabi
Newbie
Newbie
Posts: 12
Joined: Mon Jan 17, 2005 5:00 am

Post by wschrabi » Thu Aug 14, 2008 4:53 pm

: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

wschrabi
Newbie
Newbie
Posts: 12
Joined: Mon Jan 17, 2005 5:00 am

Post by wschrabi » Fri Aug 15, 2008 1:26 pm

: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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Aug 25, 2008 9:59 am

Hi walter,

If you don't want to have to modify TeeChart's sources you can use your own custom palette as shown here.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

wschrabi
Newbie
Newbie
Posts: 12
Joined: Mon Jan 17, 2005 5:00 am

Tks

Post by wschrabi » Mon Aug 25, 2008 10:14 am

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

Post Reply