PointLineSeries

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
ahe
Posts: 51
Joined: Tue Aug 11, 2015 4:33 pm
Location: Düsseldorf, DE

PointLineSeries

Post by ahe » Fri Jun 17, 2016 8:23 am

In 6.5.8 and 7.0.18, I noticed that a PointLineSeries which I used as a guide line on top of an IntensityGridSeries would occasionally be drawn with an offset or vanish completely. I created a new minimal project to reproduce the problem:
PointLineSeries.png
PointLineSeries.png (30.73 KiB) Viewed 4575 times

Code: Select all

_line = new PointLineSeries();
_line.LineStyle.Color = Color.Red;

_line.Points = new SeriesPoint[3];
_line.Points[0].X = 0;
_line.Points[0].Y = 0;
_line.Points[1].X = 50;
_line.Points[1].Y = 50;
_line.Points[2].X = 5000;
_line.Points[2].Y = 5000;

_view.PointLineSeries.Add(_line);

double dx = 0.0001, dy = 0.0001;
_view.XAxes[0].SetRange(50 - dx, 50 + dx);
_view.YAxes[0].SetRange(50 - dy, 50 + dy);
As you can see, the line is supposed to go diagonally from 0,0 to 5000,5000 passing through 50,50. But Instead it bends.

It seems there is an issue when the difference between the axis' view range and the PointLineSeries data points gets too great. Is this a rounding/numeric issue?

Or am I doing something wrong?

You will find the complete project attached.
Attachments
AL_Grid_plus_line.zip
(4.19 KiB) Downloaded 461 times

ArctionKestutis
Posts: 552
Joined: Mon Mar 14, 2016 9:22 am

Re: PointLineSeries

Post by ArctionKestutis » Fri Jun 17, 2016 11:07 am

Thanks for reporting the issue, Yes, it is rounding-error problem. We are looking at the issue, should be resolved in the next release. As workaround, place adjacent point closer.

Post Reply