HOW TO CHANGE THE X AXIS SCALE OF TSurfaceSeries!

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
hexfhhu
Newbie
Newbie
Posts: 21
Joined: Thu Dec 07, 2006 12:00 am

HOW TO CHANGE THE X AXIS SCALE OF TSurfaceSeries!

Post by hexfhhu » Tue Dec 12, 2006 1:57 am

When I draw Vector 3D with TSurfaceSeries(DEIPHI 7.0, TCHART7.07), the X axis scale should be input with the continues num, such as 0, 1, 2…and so on, or the picture can’t be drawled. But I want to set the X axis scale as 50,100,150… How to settle this problem? Thank you!

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

Post by Narcís » Tue Dec 12, 2006 9:26 am

Hi hexfhhu,

Have you read Tutorial 4 - Axis Control on how to set axes? You'll find the tutorials at TeeChart's program group.

If the problem persists please send us a simple example project we can run "as-is" to reproduce the problem here.

You can post your files at news://www.steema.net/steema.public.attachments newsgroup.

Thanks in advance.
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

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

Post by Narcís » Tue Dec 12, 2006 2:38 pm

Hi hexfhhu,

We have received your example code:

Code: Select all

  { When I draw Vector 3D with TSurfaceSeries(DEIPHI 7.0, TCHART7.07), the X axis scale should be input with the continues num,  or the picture can’t be drawled. 
  For example: 
  When I input the follow code :  }
   series1.addxyz(0,0.5,0);
   series1.addxyz(1,0.5,0);
   series1.addxyz(2,0.5,0);
 
   series1.addxyz(0,0.6,1);
   series1.addxyz(1,0.6,1);
   series1.addxyz(2,0.6,1);
 
   series1.addxyz(0,0.75,2);
   series1.addxyz(1,0.75,2);
   series1.addxyz(2,0.75,2);
 {  The 3D can be drawled. But when I input the follow code: }
   series1.addxyz(0,0.5,0);
   series1.addxyz(10,0.5,0);
   series1.addxyz(25,0.5,0);
 
   series1.addxyz(0,0.6,1);
   series1.addxyz(10,0.6,1);
   series1.addxyz(25,0.6,1);
 
   series1.addxyz(0,0.75,2);
   series1.addxyz(10,0.75,2);
   series1.addxyz(25,0.75,2);
 {  the 3D can be drawled. How to cure this problem?  Thank you!}
The second set of data is not displayed because you need to set IrregularGrid property to true before populating your series:

Code: Select all

Series1.IrregularGrid:=true;
This is necessary when X and Z intervals are not equidistant, different than one or their values are negative.
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