8 lines
328 B
Python
8 lines
328 B
Python
import plotly.express as px
|
|
fig = px.treemap(
|
|
names = ["Eve","Cain", "Seth", "Enos", "Noam", "Abel", "Awan", "Enoch", "Azura"],
|
|
parents = ["", "Eve", "Eve", "Seth", "Seth", "Eve", "Eve", "Awan", "Eve"]
|
|
)
|
|
fig.update_traces(root_color="lightgrey")
|
|
fig.update_layout(margin = dict(t=50, l=25, r=25, b=25))
|
|
fig.show() |