SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & 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 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.