Skip to content

Commit

Permalink
more plot event handler docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ritch committed Sep 4, 2024
1 parent c2f30fa commit abf92e2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions fiftyone/operators/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1483,6 +1483,18 @@ class PlotlyView(View):
See https://github.com/plotly/react-plotly.js/#basic-props for
documentation.
All event handlers have the following default params:
- ``id``: the corresponding data.ids[idx]
- ``path``: the path of the property
- ``relative_path``: the relative path of the property
- ``schema``: the schema of the property
- ``view``: the value of the PlotlyView
- ``event``: the event name (eg. onClick, onSelected, onDoubleClick)
- ``value``: the value of the clicked point (only pie chart-like plots)
- ``label``: the label of the clicked point (only pie chart-like plots)
- ``shift_pressed``: whether the shift key was pressed
Examples::
def render(self, ctx):
Expand Down

0 comments on commit abf92e2

Please sign in to comment.