Themes and Series Colors

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Ed
Newbie
Newbie
Posts: 33
Joined: Tue Mar 09, 2004 5:00 am
Location: Oregon, USA
Contact:

Themes and Series Colors

Post by Ed » Thu Mar 24, 2005 6:50 pm

Is there anyway to know what color a chart theme will use? I have two issues:

I currently set the series colors manually but want to use the theme colors. Occationally I have two pie chart's showing and they may have a different number of slices, the slices from the same category need to have the same color.

How can I achieve this with themes?

Thanks
Ed Dressel

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Mar 29, 2005 3:50 pm

Hi Ed,

you can check the palette color using similar code to the following:
(in this case for Excel theme) :

Code: Select all

ThemeColor := ExcelPalette[x];
Where ExcelPalette is a constant Array of Chart.pas.

Ed
Newbie
Newbie
Posts: 33
Joined: Tue Mar 09, 2004 5:00 am
Location: Oregon, USA
Contact:

Post by Ed » Tue Mar 29, 2005 10:42 pm

>ThemeColor := ExcelPalette[x];

thanks, but without searching through the source code, how do I know which palette is being used with which theme?

Thanks
Ed Dressel

Post Reply