You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] hoveranywhere and clickanwhere do not trigger dash callbacks #3851
The clickanywhere and hoveranywere is a cool new feature in Plotly 6.7, but it does't actually trigger a dash callback because the xvals and yvals are not included in the dcc.GraphclickData and hoverData props.
Emitting Hover and Click Events Anywhere in the Plot Area
New in 6.7
By default, hover and click events are only emitted when the cursor is over a trace. Set hoveranywhere or clickanywhere to True to emit these events anywhere inside the plot area, including over empty space: fig.update_layout(hoveranywhere=True, clickanywhere=True). The events carry the cursor's data coordinates, which is useful when building interactive callbacks (for example, in Dash) that need to respond to clicks on locations that don't correspond to a specific data point.
Activity