Multiple Series binding

Charts for WPF Forum

Posted 11 years ago by matt2012
Version: 13.2.0592
Avatar

Hello,

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 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

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 11 years ago by matt2012
Avatar

Ok, thank you.

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

Add Comment

Please log in to a validated account to post comments.