Page 1 of 1

Series colours picking up chart colors

Posted: Mon Apr 26, 2004 5:12 pm
by 9336918
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

Posted: Mon Apr 26, 2004 6:25 pm
by Marjan
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);