This example shows how to generate multiple series of the same type from the ViewModel.
To do this, specify the diagram's SeriesItemsSource property that defines a collection of objects used to generate series. To configure how the series view model is converted to a series on a chart, use the Diagram.SeriesItemTemplate property. In this example, the template is used to generate identical series. Use the Diagram.SeriesItemTemplateSelector property to create series of various types based on a criterion.
- MainWindow.xaml (VB: MainWindow.xaml)
- ChartViewModel.cs (VB: ChartViewModel.vb)
- GdpSeries.cs (VB: GdpSeries.vb)
- How to Bind a Chart to Its View Model
- How to generate Series of different view types using the MVVM binding style
(you will be redirected to DevExpress.com to submit your response)