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!
- Craig Wendel asked 2 years ago
- last edited 2 years ago
-
+1 for using code sandbox! We will look at getting this rendering in the forum correctly
- You must login to post comments
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
- David Burleigh answered 2 years ago
- last edited 2 years ago
- You must login to post comments
Please login first to submit.