Whilst I can produce the chart using px, I could not do the same using graph_obj, it just didnโt render the chart for me.
Below is my simple code.
If I replace parents = [โโ]*len(consumer_tier), it would work, however itโs not my desired output. Anyone could help me with please? Thanks
go.Figure(
go.Treemap(
branchvalues='total',
parents=consumer_tier['sales_tier'],
labels=consumer_tier['visit_tier'],
values=consumer_tier['spending_total']
)
)