Black Lives Matter. Please consider donating to Campaign Zero's mission of ending police violence in America.
https://www.joincampaignzero.org

"text" annotation for dendrograms

Is it possible to define custom text annotation for dendrograms?

For ex. it just shows the (x, y) value on hover as shown below, but I need to add another field like (x, y, “some text”).

I tried to dig the source a bit and I think “text” argument can be added at this Scatter instance to do what I described above. But I’m not sure if that’s correct or there’s already a way to do it.

1 Like

@parulsethi Can you please share how you got it to show the (x, y) annotation in the first place?

Found it:
fig.update_traces(hoverinfo='x') # or 'y', 'x+y', etc. See docs
Source: https://plot.ly/python/reference/#scatter-hoverinfo