Open
Description
Right now developers can't modify the hover box position respective to the point the user is hovering. The hover box position is determined by:
- The numbers in the
"transform=translate(valuex, valuey)"
argument of theg
element withclassName="hovertext"
: https://github.com/plotly/plotly.js/blob/master/src/components/fx/hover.js#L1200 - The shape specified in
d
in thepath
element (for the triangle orientation): make hover box caret/triangle optional #7278
Screen.Recording.2024-11-21.at.14.11.23.mov
Desired behavior:
- Some argument like dcc.Tooltip
direction
: https://dash.plotly.com/dash-core-components/tooltip#tooltip-properties - It should also allow diagonal/combined positions ("bottom+right")
# the python way
fig.update_traces(hoverbox_direction="right")
fig.update_traces(hoverbox_direction="left+top")