Skip to content

This example generates different Series from a view model. Clicking on a series changes its type from Line to Range Area.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/wpf-chart-generate-different-series-view-types-using-mvvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chart for WPF - Use the MVVM Binding Style to Generate Series of Different View Types

This example generates different Series from a view model. Clicking on a series changes its type from Line to Range Area.

Chart

Implementation Details

The XYDiagram2D.SeriesItemsSource property defines a collection of objects used to generate Series. To bind series view models to a chart, use the SeriesItemsSource property of a diagram. To configure how the series view model converts to a series on a chart, use SeriesItemTemplate or SeriesItemTemplateSelector. In this example, the Template Selector converts the selected series type from Line to Range Area.

Note that you can bind secondary axes and custom labels using the same approach. 

Files to Review

More Examples

Chart for WPF - Use the MVVM Binding Style to Generate Series of an Identical View Type

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

This example generates different Series from a view model. Clicking on a series changes its type from Line to Range Area.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •