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.

0
0

I only want to move the RolloverModifier if the left mouse button is pressed and with Left and Right Keys?

  • You must to post comments
1
0

Hi Daniel,

I’m afraid we don’t support moving the rollover line by key-press, but we do have a rich Custom ChartModifier API where you can create or customise your own ChartModifiers.

I recommend having a look at Custom ChartModifiers – Part 1 – Creating a Custom Rollover Modifier as well as the second part of this article Zooming In / Out on Key Presses as this may give some inspiration.

Alternatively, you may find it better to use our built in VerticalSliceModifier to display a ‘rollover line’ and then subscribe to key presses on the parent window to move it (update its position) instead of use a Rollover line.

Hope this helps. If you find a good solution, please post it below so it can help others!

Best regards,
Andrew

  • Daniel Hartl
    Thanks, but i'm not able to trigger any event of the sciChart or ChartModifier. Is the Chart focusable?? If yes, how can i trigger GotFocus,etc..
  • Andrew
    Hi Daniel, it's a known issue that the chart cannot accept Key events. We have it in our backlog. For now, I'd suggest taking a look at the Zooming In / Out on Keypresses sample above, which subscribes to events in the parent window
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.