Dinusha
Dinusha

Reputation: 716

How to add multiple series to wpf chart using MVVM

I can do this for single series according to this article.

but I could t do it for multiple series. If some one knows a way please help me..

Upvotes: 2

Views: 2918

Answers (2)

Brent
Brent

Reputation: 1773

http://bkiener.wordpress.com/2010/02/07/databinding-multi-series-charts/

This is the one that I use in my WPF/MVVM application. It too, was written for Silverlight, but it works for WPF as well. In fact, it looks the same as the example that @anivas provided, but I prefer this one as it describes the implementation better.

Upvotes: 2

anivas
anivas

Reputation: 6547

WPF chart doesn't support dynamic binding of series collection. You can easily achieve this using an attached property. This is an example in Silverlight but you can use it in WPF as well.

Upvotes: 1

Related Questions