Changing color in the PointSeries or Point3DSeries

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
IIHR
Newbie
Newbie
Posts: 10
Joined: Wed Aug 11, 2004 4:00 am
Location: USA
Contact:

Changing color in the PointSeries or Point3DSeries

Post by IIHR » Tue Mar 25, 2008 8:02 pm

Is it possible to change color in a single point series. For instance, if each point has value from 1 to 10, I would like to gradually change color from light blue to dark blue.

Thank you in advance.

Dongsu Kim
Graduate Research Assistant
IIHR - Hydroscience & Engineering
The University of Iowa

xxxxxx
Advanced
Posts: 128
Joined: Tue Jun 19, 2007 12:00 am
Location: Russia
Contact:

Post by xxxxxx » Tue Mar 25, 2008 9:03 pm

Use ValueColor property
Regards, Alexander
=================
TeeChart Pro v8.05, Delphi 5 & Turbo Delphi Professional for Win32., Delphi & C++Builder 2009

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

Post by Narcís » Wed Mar 26, 2008 9:47 am

Hi IIHR,

You can also set each color point in the Add method, for example:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
  Series1.ColorEachPoint := true;

  for i:=0 to 255 do
    Series1.Add(random,'',rgb(i,i,i));
end;
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