I have created a silverlight 4 application and using visifire charting components.
I am using MVVM pattern and have created a view which contains:
<Charts:Chart x:Name="myChart">
The issue is that the number of data series of the chart will change.
I have got all of the logic in place now and is working if I don't use MVVM model and directly set the myChart's series property.
Now, I want to set the data series collection of the chart in my view model.
I have created a DataSeriesCollection property in view model.
If I was setting data series collection in my backend code (if I was not using MVVM), I would do simply:
this.myChart.Series = MyDataSeriesCollection;
where MyDataSeriesCollection is a collection of DataSeries
but I don't know how I need to set the binding of DataSeriesCollection in the xaml.