Hi,
I have a collection with DataSeries that I want to add to my chart. Each of these DataSeries have correct LegendLabel, XCategory and YValue the way I want it.
The problem is adding or binding them to the chart.
How do I bind this in xaml so that the chart understands what XCategory to use and what value it is supposed to be in there for each serie? As far as I can understand I have to transform my Collection<DataSeries> to a DataTable and also add a SeriesMapping. Problem is that the collection is changing all the time so it seeds to be bound and updated upon changes as well.
I also tried to use _chart.DefaultView.ChartArea.DataSeries.Add() but when I then do DataSeries.Clear() when my Collection changes I get an error saying "The calling thread cannot access this object because a different thread owns it."