Plotly · Function
State
trace.on_click registers a Python callback for clicks on points in a Plotly trace. It works when the trace is in a displayed FigureWidget inside an ipywidget context.
Last updated
Syntax
trace.on_click(callback, append=False)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
plotly.graph_objects.FigureWidgetplotly.callbacks.Pointsplotly.callbacks.InputDeviceStateplotly.graph_objects.Scatterplotly.graph_objects.Figure