Page 1 of 1

Auto-scaling issue when using null points

Posted: Wed Feb 15, 2012 4:45 am
by 15661487
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

Re: Auto-scaling issue when using null points

Posted: Fri Feb 17, 2012 3:53 pm
by 10050769
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,

Re: Auto-scaling issue when using null points

Posted: Mon Feb 20, 2012 12:22 am
by 15661487
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

Re: Auto-scaling issue when using null points

Posted: Mon Feb 20, 2012 4:25 pm
by 10050769
Hello Michael,

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

Thanks,