SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
I’m tackling a difficult problem in my solution here. Our chart will allow users to add as many as 50 different series at any one time.
As well as this – the user will be able to specify the RenderableSeries (Chart Type) of each of these between; column, line and mountain.
One solution is to replicate the method found in your own SciChart SciTrader demonstration (in which each type of RenderableSeries is added to the xaml once for each data series, they share a DataSeries and then the Visibility property within the style is managed to only show the one the user requests), but this would require 150 (50 placeholders for 50 possible series * 3 definitions per series) definitions of different RenderableSeries, each with their own Style defined.
Is there any way to create a custom RenderableSeries that extends BaseRenderableSeries and add a DependencyProperty that allows a binding from the xaml to modify the type of RenderableSeries that is displayed?
Even better – is there a way to add RenderableSeries using MVVM (I noticed the add/remove dynamic series tutorial has a note to standby for such a tutorial). I will attempt to find a solution by going down this path as it sounds much less verbose.
Thanks in advance for all your help!
Whilst this approach is working fine for FastColumnRenderableSeries, I experience a strange behaviour using the new StackColumnRendererableSeries from v3.2. In fact, when switching the DataSeries to a different ViewModel, the chart columns are misplaced and start to blink very second (turned on and off by itself) without any exception being thrown.
Did I run into a bug here?
Please login first to submit.