0

Bug in oxyplot, Why it do not connect points in correct order

stackFlow Over 8 years ago 0

private void LoadData()

{

List<Points> measurements = Data.GetData(allPointsOfSelectedZone);//Now measurements contains all the points in the order displayed in ViewModel.cs Code of other tried sample written below
var dataPerDetector = measurements.GroupBy(m => m.DetectorId).OrderBy(m => m.Key).ToList();
foreach (var data in dataPerDetector)
{
var lineSerie = new LineSeries
{
StrokeThickness = 1,
MarkerSize = 1,
MarkerStroke = colors[0],
MarkerType = markerTypes[0],
CanTrackerInterpolatePoints = true,
Title = string.Format("Zone Selected :{0}", data.Key),
Smooth = false,
};
data.ToList().ForEach(d => lineSerie.Points.Add(new DataPoint(DateTimeAxis.ToDouble(d.Time), d.Tesnion)));
PlotModel.Series.Add(lineSerie);
}
lastUpdate = DateTime.Now;
}