plouc / nivo

nivo provides a rich set of dataviz components, built on top of the awesome d3 and React libraries
https://nivo.rocks
MIT License
13.11k stars 1.03k forks source link

Fix tooltip context and position on click #2639

Open dmitrizzle opened 1 month ago

dmitrizzle commented 1 month ago

Is your feature request related to a problem? Please describe. Nope.

Describe the solution you'd like I would like to have the tooltip stay in position and the data shown in the tooltip to remain constant when user clicks on a point. Clicking outside tooltip would resume normal interaction (tooltip appears on hover and moves with crosshair). I think this can be accomplished by forcing the touch interaction functionality on screens with mice.

Describe alternatives you've considered There's no API for this as far as I can tell, so I figure this would require a mode within the package. If not, please let me know!

Additional context Tooltips on my graph will include links which will need to stay on screen for users to be able to click them.