Series colours picking up chart colors

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Mortong
Newbie
Newbie
Posts: 15
Joined: Mon Mar 29, 2004 5:00 am
Location: london

Series colours picking up chart colors

Post by Mortong » Mon Apr 26, 2004 5:12 pm

Hello again

I wonder if you can be your usual helpful selves...

I want to set a series color to say the fifth color of the current colour pallette.

ie sereis1.color:=??????????;

What is the ???????? please....

Many thanks

Morton

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Mon Apr 26, 2004 6:25 pm

Hi, Morton.

Try the following code:;

Code: Select all

  if High(ColorPalette) >= 4 then
    Series1.Color := ColorPalette[4];
Or alternatively, if you want to use "default" colors:

Code: Select all

Series1.Color := GetDefaultColor(4);
Marjan Slatinek,
http://www.steema.com

Post Reply