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 am using mvvm and binding multiple fastline dataseries to the renderable series property which works fine. However, I would like to create a viewmodel for the series and bind things like series color, seriessource, name to properties in my viewmodel. Typically with collections I would use the itemscontainerstyle, is there an equivalent to this with the renderable series? If not, do you have any recommendations on a way to do something like this?
We don’t have an ItemsContainerStyle property to do this but I understand what you mean. We have a pretty good write-up at the FAQ Switching Chart Types (RenderableSeries) at Runtime on the different methods available in SciChart. Take a look at the Attached Behaviour method – this lets you bind to anything and create anything. For instance, if you had a set of ViewModels to define chart type, colours and data, you could easily create the RenderableSeries on demand in your behaviour.
If you do make some progress, feel free to post it as an answer as other people will no doubt be interested!
Thanks for the info,
I ended up taking a different direction and just basically using the FastLineRenderableSeries as my viewmodel object and modifying it at runtime, which works great. I did have to inherit this class to add some of my own functionality.
Please login first to submit.