Page 1 of 1

TColorGridSeries - Value[0,0]

Posted: Tue Dec 06, 2016 3:48 pm
by 16479009
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;

Re: TColorGridSeries - Value[0,0]

Posted: Mon Dec 12, 2016 8:53 am
by yeray
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.