color

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
daniel
Newbie
Newbie
Posts: 3
Joined: Thu Feb 17, 2005 5:00 am

color

Post by daniel » Wed Mar 23, 2005 1:03 am

I am adding a set of bar series which use distinct colors up to 18 then all the rest of the bars are colored grey. Is there anyway to increase the number of colors that will be assigned? Thanks

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

Post by Marjan » Wed Mar 23, 2005 7:55 am

Hi.

Which TeeChart version are you using? If you're using TeeChart v6.02 PRO (or above) then you can define default color palette by using:

Code: Select all

  SetLength(TeeProcs.ColorPalette,20);

  TeeProcs.ColorPalette[0] := clRed;
  TeeProcs.ColorPalette[1] := clWhite;
  TeeProcs.ColorPalette[2] := clYellow;
  // ...
Using the latest TeeChart version there are other methods you can use to define custom color palette (through themes, ...).
Marjan Slatinek,
http://www.steema.com

daniel
Newbie
Newbie
Posts: 3
Joined: Thu Feb 17, 2005 5:00 am

color

Post by daniel » Wed Mar 23, 2005 5:34 pm

I am using teechart 7.04. How would one use themes as you suggested in your previous post?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Mar 24, 2005 9:04 am

Hi daniel,

You will find a couple examples at the TeeChart features demo included with the TeeChart installation. You will find the demo in the TeeChart program group and the examples are the first ones when openning the demo.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply