WaterFall Serie in TeeChart 7.12 (Codegear 2007 Upd3)

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
lolo31
Newbie
Newbie
Posts: 19
Joined: Thu Mar 25, 2004 5:00 am

WaterFall Serie in TeeChart 7.12 (Codegear 2007 Upd3)

Post by lolo31 » Mon Dec 17, 2007 1:55 pm

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Dec 17, 2007 2:48 pm

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);
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