Closed
Description
Seeing the on_click
support:
plotly.py/packages/python/plotly/plotly/basedatatypes.py
Lines 5190 to 5240 in 267c187
I am looking for similar on_treemapclick
and on_sunburstclick
support referenced:
For something like:
import plotly.graph_objects as go
tm = go.Treemap(
labels = ["Eve","Cain", "Seth", "Enos", "Noam", "Abel", "Awan", "Enoch", "Azura"],
parents = ["", "Eve", "Eve", "Seth", "Seth", "Eve", "Eve", "Awan", "Eve"]
)
fig = go.FigureWidget(tm)
fig.show()
from ipywidgets import Output
out = Output()
def click_fn(trace, points, state):
with out:
print(trace, points, state)
tm.on_click(click_fn)
def treemapclick_fn(trace, data, state):
with out:
print(trace, data, state)
tm.on_treemapclick(treemapclick_fn)
out
on_click
in the above is not rendering, either.
I have plotly version 4.5.0.
Metadata
Metadata
Assignees
Labels
No labels