Dynamic number of LineSeries in WPF Charting using MVVM
-
segunda-feira, 16 de abril de 2012 14:54
I have gone through lot of sample projects on the net which claim to follow the MVVM pattern and have dynamic number of LineSeries (or) Series objects in a Chart,but rather each one of them just create a wrapper or inherit the Chart class and somewhere call the chart.Series.Add() function to add the series.
I was searching for an example where we have ObservableCollection<ObservableCollection<int,int>> and I bind this List to the Chart.Whenver I add or remove any ObservableCollection from the outer list a Series automatically should get populated.
Thanks in Advance.
Todas as Respostas
-
segunda-feira, 16 de abril de 2012 15:13
I have found this :
http://jmorrill.hjtcentral.com/Home/tabid/428/EntryId/351/Silverlight-Charts-Binding-multiple-Series.aspx
I have ObservableCollection<ObservableCollection<KeyValuePair<int,int>>> ListOfLists and
I set Helper:ChartHelper.SeriesSource="{Binding ListOfList}"
but still it does not work
-
sexta-feira, 20 de abril de 2012 04:41Moderador
Hi Mohnish,
I search on internet, and find these link may help you out, please check out it:
http://blog.thekieners.com/2010/02/07/databinding-multi-series-charts/
Hope it helps.
Have a nice day.
Annabella Luo[MSFT]
MSDN Community Support | Feedback to us
- Marcado como Resposta Annabella LuoModerator quinta-feira, 26 de abril de 2012 05:59

