Pre loader

RolloverModifier Custom Tooltip

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

1
0

Hi,

I’ve been trying to customize the RolloverModifier tooltip content with a vertical chart but am at a loss to try to get the format I need. I’d like to take in all the series info and display them in a tooltip together with a small icon and the y-value next to this.

I was able to do this in the CursorModifier content but unable to do so in the RolloverModifier which is what I really want to use.

I’ve included a CodeSandbox link below showing the custom SVG template and output on the CursorModifier I’d like to use for the RolloverModifier. Is this type of output template possible?

Thanks in advance!

Version
2.2.2415
Images
  • Andrew Burnett-Thompson
    +1 for using code sandbox! We will look at getting this rendering in the forum correctly
  • You must to post comments
1
0

Hi

To change the rollover template, you have to update the series.rolloverModiferProps.tooltipTemplate with a function of type TRolloverTooltipSvgTemplate which takes a single seriesInfo. Documentation on this is here

I have forked and updated the sandbox with what I hope you intended:
https://codesandbox.io/s/zealous-sun-kts9fq

Regards
David

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.