Auto-scaling issue when using null points

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
CourteousD
Newbie
Newbie
Posts: 12
Joined: Mon Feb 06, 2012 12:00 am

Auto-scaling issue when using null points

Post by CourteousD » Wed Feb 15, 2012 4:45 am

Hi,

I'm using a Point3D series to draw multiple traces (points with lines between them). Each trace is separated by a null point to prevent the line being drawn between the end of one trace and the start of another. If I add the null point using points3D1.Add(), then the automatically determined x-scale maximum seems to be set to the number of points, rather than the actual maximum x value.

I have found a workaround for the moment by replacing Add() with Add(lastx, lasty, lastz, Color.Transparent), but would like to be able to use the null value as I understand it was intended. I've attached a solution to easily demonstrate the problem.

Regards,

Michael Lofgren
Attachments
GraphTest.zip
(32.07 KiB) Downloaded 486 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Auto-scaling issue when using null points

Post by Sandra » Fri Feb 17, 2012 3:53 pm

Hello Michael,

First you need know that Add(lastx, lasty, lastz, Color.Transparent) is the correct way to add Null points, in the determinate point. On the other hand, I recommend you take a look in the demo project, concretely in All Features\Welcome !\Chart styles\Extended\Point 3D\Point3D Nulls where find other example as you do to add nulls in the point3D Series, that is very similar as you do.

Thanks,
Best Regards,
Sandra Pazos / 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

CourteousD
Newbie
Newbie
Posts: 12
Joined: Mon Feb 06, 2012 12:00 am

Re: Auto-scaling issue when using null points

Post by CourteousD » Mon Feb 20, 2012 12:22 am

Thanks Sandra for the clarification. I was led to believe otherwise by the TeeChart Programmer's guide. The AddNull method says it is obsolete and to use the Add() method without parameters. And the Add(void) method says that it adds a new null (transparent) point. Perhaps the wording can be changed to be less confusing or something.

Regards,

Michael

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Auto-scaling issue when using null points

Post by Sandra » Mon Feb 20, 2012 4:25 pm

Hello Michael,

Thanks for your suggestion, we investigate it and try to consider it for next maintenance releases.

Thanks,
Best Regards,
Sandra Pazos / 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