This recipe explains what is dendrogram in plotly
What is dendrogram in plotlty, explain with example?
Dendrogram a tree digram representation is done by this, from figur factory we can use dedrogram by calling "create_dedrogram" which will result in tree output representation. The values on axis of tree depth are corresponding to the distance between clusters.
import plotly.figure_factory as pff
import numpy as np
data = np.random.rand(5,5)
names = ["James","Heena","Vidhi","Aron","Simon"]
fig = pff.create_dendrogram(data, orientation="left",labels=names)
fig.update_layout({'width':1000, 'height':700})
fig.show()