How to prevent creating white series?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
moelski
Advanced
Posts: 212
Joined: Mon Apr 23, 2007 12:00 am
Location: Germany
Contact:

How to prevent creating white series?

Post by moelski » Fri Jul 20, 2007 11:33 am

Hi !

Well I don´t know who need white as autocolor for generated (Fast) Seires !?
Is there a way to prohibit the TChart engine using white as a automatic color?

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

Post by Pep » Mon Jul 23, 2007 11:48 am

Hi Dominik,

what do you mean with (Fast) series ?
In case you refer to how to customize the predefined colors for created Series, you can modify the colorpalette array manually using similar code to the following :

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
var
   t:integer;
begin
      SetLength(Chart1.ColorPalette,Length(RainbowPalette));
      for t:=0 to Length(RainbowPalette)-1 do
          Chart1.ColorPalette[t]:=RainbowPalette[t];
end;

moelski
Advanced
Posts: 212
Joined: Mon Apr 23, 2007 12:00 am
Location: Germany
Contact:

Post by moelski » Mon Jul 23, 2007 11:55 am

Hi Pep,

Thx for that information.
what do you mean with (Fast) series ?
I mean TFastLineSeries. Sorry for the wrong wording. [/code]

Post Reply