Multiple Series binding

Charts for WPF Forum

Posted 10 years ago by matt2012
Version: 13.2.0592


have the XYChart a property like ItemSource?

Similar to the ItemSource in LineSeries.

I want to manage the multiple LineSeries over a ItemSource property.

I found the property "Series" in XYChart, but this has no setter.

I need a full XAML MVVM sample to bind the multiple line series.

Thank you.

Comments (2)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Matt,

I'm sorry but the XYChart doesn't have an ItemsSource concept on itself.  Only each series has that concept for its data.

The only way to set series on the chart is to update the XYChart.Series collection.  If you want to do this via MVVM, you would probably need to bind your model data to a property on your view model.  And a changed handler on that view model property would need to kick off a method that clears and rebuilds the XYChart.Series collection based on the data in the property.

Actipro Software Support

Posted 10 years ago by matt2012

Ok, thank you.

The latest build of this product (v24.1.2) was released 28 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.