Pre loader

custom CursorModifier

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

I’m attempting to create a custom CursorModifier to display series information aggregated across multiple SciChart surfaces into a single tooltip. These surfaces are synced via the VerticalChartGroupId with the charts displayed as part of an ItemsControl using MVVM. The default behavior only shows information for the series in the subpane where the mouse is. This makes sense given the CursorModifier is local to the subpane and set via a DataTemplate assigned to the ItemsControl.ItemTemplate.

To create a “global” CursorModifier, I’m guessing I need to override the GetSeriesInfoAt method of CursorModifier. I have access to all the IRenderableSeriesViewModels across all the subpanes via the parent view model. My question is how can I access the appropriate SeriesInfo object for each of these renderable series in order to return an enumerable of SeriesInfo objects? These should be the appropriate derived type (e.g. OhlcSeriesInfo, BandSeriesInfo, etc.) so that my template selector can do its thing. Thank you!

Lawson

Version
8.10.0.28840
  • Lex
    • Lex
    • 5 months ago
    Hi Lawson, Thank you for contacting us. I’m going to discuss the possible ways to implement the described feature with our team and will get back to you as soon as I have an update. Kind regards, Lex S., MSEE SciChart Technical Support Engineer
  • Lex
    • Lex
    • 4 months ago
    Hi Lawson, I hope you are doing well. Please be informed that we reviewed your inquiry and logged a task to further investigate the possibility of creating the described extended Tooltip. The task has been prioritized, and our team will start working on it as soon as they resolve the current assignments. Kind regards, Lex S., MSEE SciChart Technical Support Engineer
  • You must to post comments
0
0

Hello Lawson,

We apologize for the delayed response. Your question required us to create a working example, and our team had been fully focused on the recent v8.11 release, which delayed our ability to respond sooner.

You are absolutely right in your assumption – the core idea is to override the GetSeriesInfoAt() method and aggregate SeriesInfo objects from all charts.

We’ve prepared and attached an example that demonstrates how this can be implemented using a custom CursorModifier for synchronized charts.

Please let us know if this solution fits your requirements, and feel free to reach out if you have any questions or would like further clarification.

Best Regards,
Joeri
SciChart Team

  • You must to post comments
0
0

Hi Joeri,

No problem! Sorry, I didn’t realize it would be so involved. I did add a dependency property “Pane” to keep track of the order of cursor modifiers, otherwise I found the order in which the SeriesInfo were returned could differ from what you might logically expect looking at a multi-pane chart from top to bottom. It works well. Thank you for the solution–no way I would have come up with that on my own. I hope it helps someone else down the road.

Best regards,
Lawson

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.