SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
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!
Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.
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?
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.
Please login first to submit.