Hereās the code and example data.
Iāve tried different data and different color scales.
I canāt figure out what the issue here is.
Iāve multiple locations, and the color scheme is based on when the first location was established in the country. The size of the treemap is created from the count of locations.
Iāve running the code in pycharm
data_treemap['world'] = 'world'
fig = px.treemap(data_treemap, path=['world','continent','country.name', 'city.state','city.name'], values='count',
color='established', color_continuous_scale='RdBu',hover_data=['1'], maxdepth=3)
plotly.offline.plot(fig)
world continent country.name city.state city.name count established
0 world North America United States California San Francisco 1 1982
1 world North America United States California San Francisco 1 1982
2 world Europe Germany Baden-Württemberg Mannheim 1 1984
3 world Europe Germany Bavaria Munich 1 1984
4 world Europe Poland Masovian Voivodeship Warsaw 1 1987
5 world Europe Czech Republic HlavnĆĀ Mesto Praha Prague 1 1993
6 world Europe Austria Vienna Vienna 1 1991
7 world Europe Romania None Bucharest 1 1999
8 world Asia Russia Moscow Moscow 1 1991
9 world Asia Estonia Tartumaa Tartu 1 1999
10 world Europe Finland Southern Finland HƤmeenlinna 1 1984 ```