AddnullXYZ to TColorseriesgrid

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
seanmurphy
Newbie
Newbie
Posts: 48
Joined: Fri Mar 12, 2004 5:00 am

AddnullXYZ to TColorseriesgrid

Post by seanmurphy » Tue Dec 18, 2007 9:29 pm

Is it possible to addnull to a Tseriescolorgrid ?

Teechart Pro v8.01 on Delphi 6 Pro

cheers
Sean

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 Dec 19, 2007 8:50 am

Hi Sean,

Yes, this is the same as setting a transparent cell, for example:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
var x,z: Integer;
    tmpColor: TColor;
begin
  for x:=0 to 10 do
    for z:=0 to 10 do
    begin
      if ((x=5) and (z=5)) then
        tmpColor:=clNone
      else
        tmpColor:=clTeeColor;

      Series1.AddXYZ(x,random,z,'',tmpColor);
    end;
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