plotly / dash-core-components

OBSOLETE: now part of https://github.com/plotly/dash
https://dash.plotly.com
MIT License
270 stars 147 forks source link

It should be possible to position a dcc.Tooltip from figure coordinates rather than screen coordinates #998

Open alexlenail opened 2 years ago

alexlenail commented 2 years ago

Right now, it's only possible to position a tooltip from the bbox object argument passed to a hover or click callback, which contains screen coordinates. It should be possible to position a tooltip with figure coordinates, so that you can position a tooltip without the user having the mouseover or click a particular object before showing the tooltip.

xref https://community.plotly.com/t/get-bbox-of-all-points-in-scatterplot-or-position-tooltip-with-axis-coordinates-rather-than-screen-coordinates/63588