Line Series Problem

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Nitin
Newbie
Newbie
Posts: 6
Joined: Fri Sep 05, 2008 12:00 am

Line Series Problem

Post by Nitin » Thu Apr 15, 2010 7:07 am

Hi,

We are using TeeChart for .NET Ver 3.5. I've come through strange problem with line series. Our application plots x,y data in point series and allows to draw straight lines calculated from these data. I use line series with two x,y values to draw straight lines. In next step, application tries to find intersection point between two lines.

In un-zoom mode everything works fine and line intersection seems ok but as you zoom in further on the intersection point, it tends to move from the original position and shows wrong intersection point.

In the attached word file, the first image shows right intersection point. In next image you can see that it has moved down in zoom mode. I am also uploading sample project.

Please let me know as soon as possible.
Attachments
Line Series Problems Images.zip
Images
(73.91 KiB) Downloaded 433 times
LineSeriesProblems.zip
Sample Project
(20.01 KiB) Downloaded 433 times

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

Re: Line Series Problem

Post by Narcís » Fri Apr 16, 2010 3:43 pm

Hi Nitin,

I'm afraid this is a rounding problem. I have added it to the defect list (TF02014802) to be investigated for future releases.
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

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Line Series Problem

Post by Marc » Tue Apr 20, 2010 2:24 pm

Hello,

We can suggest a workaround to this issue. If a smoothing function is applied to the Lines whose cross-point is to be viewed, then using the smoothed (interpolated) lines, the accuracy of points in relation to the plotting area remains true and the cross-point itself retains accuracy.

When TeeChart applies the smoothing function it divides the smoothed line into smaller segments of the source line, for a straight line that line will remain straight but the location of the nearest [sub]point to the potting area is much nearer and there is far less margin for rounding errors.

You can see that in the demo linked here: http://www.steema.com/files/public/teec ... rtZoom.zip. There is no need to show the original (source) lines and the option checkboxes in the demo allow you to show/hide those lines. We've added a cross-point pointer (circular-point) to show where the crossover should take place. We've found that the plot quality is substantially better in TeeChart 2009 and for that reason we've included the executable demo with eval 2009 TeeChart.dll in the zip so that you can see it and compare results to those obtained with version 3.5.

Regards,
Marc Meumann
Steema Support

Nitin
Newbie
Newbie
Posts: 6
Joined: Fri Sep 05, 2008 12:00 am

Re: Line Series Problem

Post by Nitin » Wed Apr 21, 2010 7:10 am

Hi,

Thanks for the workaround. It works fine.

Regards

Nitin

Post Reply