A line is created joining the beginning and the end

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Arction_LasseP

Andres
Posts: 8
Joined: Mon May 22, 2017 9:40 pm

A line is created joining the beginning and the end

Post by Andres » Tue May 23, 2017 3:14 pm

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
Attachments
linecreated.png
linecreated.png (89.72 KiB) Viewed 6569 times

User avatar
ArctionPasi
Posts: 1366
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland

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

Post by ArctionPasi » Wed May 24, 2017 7:52 am

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.
LightningChart Support Team, PT

Andres
Posts: 8
Joined: Mon May 22, 2017 9:40 pm

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

Post by Andres » Wed May 24, 2017 12:21 pm

Thanks!! I did had a (0,0) point.