HI there, I wondered if it is possible to define the exact order/placement of values within the treemap.
Sample code:
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()
For example, can I specify that I want βCainβ to be placed under βAbelβ, etcβ¦
Thank you very much.