private void contructSingleLineSeries(Style _series_style) { OxyPlot.Wpf.LineSeries _series = null; _series = new OxyPlot.Wpf.LineSeries(); LineSeries _seriesModel = (LineSeries)_series.CreateModel(); _seriesModel.Points.AddRange(LineSeries); OxyPlotView.Series.Add(_series); // Style DependencyProperty has to be defined always after adding the series to the view if (_series_style != null) { _series.SetCurrentValue(StyleProperty, _series_style); } AbsoluteMinimumX = LineSeries.Min(element => element.X); AbsoluteMaximumX = LineSeries.Max(element => element.X); AbsoluteMinimumY = LineSeries.Min(element => element.Y); AbsoluteMaximumY = LineSeries.Max(element => element.Y); }