TColorGridSeries - Value[0,0]

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Sharpenski
Newbie
Newbie
Posts: 36
Joined: Wed Aug 24, 2016 12:00 am

TColorGridSeries - Value[0,0]

Post by Sharpenski » Tue Dec 06, 2016 3:48 pm

I have a strange problem occuring with a TColorGridSeries. An error occurs when I reference Value[0,0] which claims there is 'no value at XZ:0 0' even though I have manually plotted at said point. If I start at 1 instead the error does not occur but I can't identify a consistent indexing system. Can you help understand this issue?

Code: Select all

Series8.Clear;
  for x := 0 to 10 do
    for z := 0 to 5 do
      Series8.AddXYZ(x,x+z,z);
  ShowMessage('Populated.');


  for x:=1 to Series8.NumXValues do
  begin
    for z:=1 to Series8.NumZValues do
    begin
      //tmpGrid.AddXYZ((Series8.NumZValues-1)-z, Series8.YValue[(z*Series8.NumXValues)+x], x);
      tmpGrid.AddXYZ(z, Series8.Value[x,z], x);
    end;
  end;

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TColorGridSeries - Value[0,0]

Post by Yeray » Mon Dec 12, 2016 8:53 am

Hello,

See this for info on how to populate this kind of series.

Don't hesitate to let us know if you still find problems with it.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply