Pre loader

HOw to synchornise charts zoom when chart are in 2 different user control ?

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

Dear all,

In our application we have 2 separate charts which are hosted in 2 different usercontrols displayed side by side.
What is the way to syhnonise for instance the zoom on this 2 chart ?

I have done that when chart are hosted in same control but have no idea how to do that in such case of 2 different control hosted

Do I need to create an attached property on second chart and pass something from chart 1 to chart 2 ?

Thanks for help

Version
4
  • You must to post comments
0
0

Hi there,

I would suggest to bind two VisibleRanges of the X axes of both charts to the same property in a ViewModel. We have an example where there are two surfaces which have their ranges bound to a property called SharedVisibleRange here:
https://www.scichart.com/example/wpf-chart-example-sync-multi-chart-mouse/

Please refer to its code as an example of how this can be done.

Hope this helps,

Best regards,
Yuriy

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies