SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

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.

Answered
1
0

How can I synchronise two or more Rollover Modifiers from different charts? If I move the mouse I would like to see a Rollover Modifier also on other charts.

  • You must to post comments
Best Answer
1
0

Hello Stephan,

Thanks for your query! This is possible by using an attached property called the MouseManager. This is used in the SciTrader demo on the examples suite.

In the code-behind of SciTraderView.xaml you will see something like this:

<s:SciChartSurface x:Name="chart0">
   ... 
   <s:SciChartSurface.ChartModifier>
       <s:RolloverModifier 
           s:MouseManager.MouseEventGroup="MySharedMouseGroup"/>
   </s:SciChartSurface.ChartModifier>
</s:SciChartSurface>

<s:SciChartSurface x:Name="chart1">
   ... 
   <s:SciChartSurface.ChartModifier>
       <s:RolloverModifier 
           s:MouseManager.MouseEventGroup="MySharedMouseGroup"/>
   </s:SciChartSurface.ChartModifier>
</s:SciChartSurface>

The MouseEventGroup attached property will synchronize mouse events across charts. If one chart raises a mouse move event, the other will get it as a secondary event. This way rollovers can be synchronized across charts.

Can you give that a go and let me know if it works?

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.