We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

MVVM Chart with the ability to dynamically add data series

Thread ID:





105285 Sep 25,2012 10:46 PM UTC Oct 8,2012 04:52 AM UTC WPF 1
Tags: Chart
Asked On September 25, 2012 10:46 PM UTC

Could someone provide an example of the proper setup, binding, etc.  of a program utilizing the wpf charts in an MVVM design that will allow for dynamic data series addition.  I have the samples for multiple charts that is in MVVM but relies on a finite amount of data series' being declared in the xaml.  I also have a solution that can dynamically add data series from another post but it relies on the code behind the window with the graph element in it and being able to reference the chart element directly.  I am trying to make a program that will graph an unlimited amount of data series on a single graph without know how many data series need to be graphed beforehand but it has to be in the Model, View, ViewModel design pattern.

Michael Prabhu M [Syncfusion]
Replied On October 8, 2012 04:52 AM UTC

Hi Aaron,

Sorry for the delay in getting back at this.

We have analyzed your requirement and we like to inform you that without knowing how many series we want to add in a chart, it is not possible to achieve your requirement in MVVM design. But this can be achieved in code behind which you are already aware of. Sorry for any inconvenience caused.

Please let us know if you have any concerns.


Michael Prabhu.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon