Page 1 of 1

WaterFall Serie in TeeChart 7.12 (Codegear 2007 Upd3)

Posted: Mon Dec 17, 2007 1:55 pm
by 9336880
Hi,

I can't see line when I add data where x is less than 1:
Series1.AddXYZ(0, 2, 1);
Series1.AddXYZ(0.1, 4, 1);
Series1.AddXYZ(0.2, 6, 1);
Series1.AddXYZ(0.3, 8, 1);

I hadn't the issue with previous version...

Regards,
Laurent.

Posted: Mon Dec 17, 2007 2:48 pm
by narcis
Hi Laurent,

This is because your data is not valid for plotting a regular WaterFall series. You need to set IrregularGrid to true at your code:

Code: Select all

  Series1.AddXYZ(0, 2, 1);
  Series1.AddXYZ(0.1, 4, 1);
  Series1.AddXYZ(0.2, 6, 1);
  Series1.AddXYZ(0.3, 8, 1);

  Series1.IrregularGrid:=true;
Code snippets below work fine for me here. Please read this thread for more information on how that kind of series work.

Code: Select all

  for x:=0 to 10 do
    Series1.AddXYZ(x/10, random, 1);

Code: Select all

  for x:=0 to 10 do
    for z:=0 to 10 do
      Series1.AddXYZ(x/10, random, z);