I am currently working with Livecharts and I am trying to bind a SeriesCollection to a DataGrid. It is possible to bind it, but this series have some values and I want the DataGrid to show those point. However it only shows that two SeriesCollection items are binded LiveCharts.SeriesAlgorithm.LineAlgorithm, I do not know if a converter is needed to solve this problem.
xaml.cs
public MyConstructor()
{
SeriesCollection = new SeriesCollection();
SeriesCollection.Add(reducedValuesLineSeries); // adds some points
SeriesCollection.Add(fullValuesLineSeries); // adds a line composed by many ponits
}
private SeriesCollection seriesCollection;
public SeriesCollection SeriesCollection
{
get => seriesCollection;
set
{
seriesCollection = value;
OnPropertyChanged();
}
}
xaml
<DataGrid ItemsSource="{Binding SeriesCollection}"/>