SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy

We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

0
0

Hi,

I’m trying out sciCharts for our MVVM application. From what I can see, if I want to use bindings to attach our view models to a sciChartSurface’s SeriesSource dependency property, they’ll have to derive from ChartSeriesViewModel? As we’ve got quite a few view models, is there a way to avoid that?

Thanks,
Shawn

  • You must to post comments
0
0

Hi Shawn,

Actually they just need to implement IChartSeriesViewModel, so you can have your own base class, but we expect certain behaviour to get DataSeries or RenderableSeries pairs.

Alternatively, you can just expose N DataSeries in the ViewModel and bind directly to RenderableSeries declared in XAML, however this method doesn’t allow for adding/removing series dynamically.

Finally, a really good idea we’ve seen (submitting from a customer) was to create an attached behaviour to dynamically grow or shrink RenderableSeries based on a collection of DataSeries it bound to. Sorry, I can’t share an example at this time, but thought you might find it a useful idea.

Best regards,
Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.