Page 1 of 1

AddnullXYZ to TColorseriesgrid

Posted: Tue Dec 18, 2007 9:29 pm
by 9231397
Is it possible to addnull to a Tseriescolorgrid ?

Teechart Pro v8.01 on Delphi 6 Pro

cheers
Sean

Posted: Wed Dec 19, 2007 8:50 am
by narcis
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;