using System.Collections.Generic; using System.Linq; using Core.Components.Charting.Data; using OxyPlot; using OxyPlot.Series; namespace Core.Components.OxyPlot.Converter { /// /// This class converts into with point styling. /// public class PointDataConverter : ChartDataConverter { protected override IList Convert(PointData data) { var series = new LineSeries { ItemsSource = data.Points.ToArray(), IsVisible = data.IsVisible, Mapping = TupleToDataPoint, LineStyle = LineStyle.None, MarkerType = MarkerType.Circle, Tag = data, }; return new List { series }; } } }