Color of pie slices

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:

Color of pie slices

Post by Ed » Mon Apr 11, 2005 10:14 pm

How can I get the color of existing pie slices for a given series?

thanks
Ed Dressel

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

Post by Pep » Mon Apr 11, 2005 11:10 pm

Hi Ed,

you can do :

Code: Select all

var i : integer;
  colors : array of TColor;
begin
SetLength(colors,Series1.Count);
for i:=0 to Series1.Count-1 do
    colors[i]:= Series1.ValueColor[i];
end;

Post Reply