I am trying to use customdata to display more information as a text template on my treemap. Unfortunately, the text being displayed does not match my data. Below is an example using a simplified dataset:
Thanks for the reply, this issue has really been stumping me.
I tested it with a remove duplicates line but faced the same issue. In a subsequent test, I changed the βYearβ column to have values 0 β len(df) and noticed that the annotations appear to be linked to the wrong pathing. For example, here is my updated code:
Just wanted to bump this, as I am still dealing with the issue. I can now confirm that swapping the from/to does showcase the correct information in the sample data, however I could not work this out in the main data that includes 3 layers instead of 2.
Am I missing something about the fundamentals of treemaps? Why are my text annotations incorrect?