Page 1 of 1

A line is created joining the beginning and the end

Posted: Tue May 23, 2017 3:14 pm
by Andres
Hi there,

I am facing a problem, when I load my data into the Chart a line is created joining the beginning and the end of my Graph.
I am guessing that must be some property but I can't find how to deactivate this.

I am using PointLineSeries for this:

Code: Select all

                
PointLineSeries pls = chartView.PointLineSeries[line];
pls.Points = points;

Thanks in advance,
Andrés

Re: A line is created joining the beginning and the end

Posted: Wed May 24, 2017 7:52 am
by ArctionPasi
Hi Andres,

most likely you have created extra-sized SeriesPoint[] array, and filled only the beginning of it. It seems you have 0,0 points in the tail. Give exact length array to Points property.

Re: A line is created joining the beginning and the end

Posted: Wed May 24, 2017 12:21 pm
by Andres
Thanks!! I did had a (0,0) point.