SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
I’m trying to create a few ChartSurface’s which show same elements but with different visible ranges.
If i share DataSeries by binding to SeriesSource this works. But if i try to binding Annotations to a few ChartSurface’s i see annotations only on last chart. If i manually create copy of annotations that everything works but takes a long time.
Is there any way to binding Annotations to a few Charts?
There is no way to share annotations between different chart surfaces, because they are UIElements. This is a WPF limitation, not SciChart limitation – a UIElement can only have one parent.
What I would suggest you do is follow the architecture in this FAQ – Best Practices Architecture for Annotations in MVVM to separate annotations into View and ViewModels. Then, you can have one set of ViewModels and duplicate the annotations on charts via an attached behaviour.
Please login first to submit.