Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Px.Treemap/Go.Treemap callbacks

$
0
0

Hey all,
I think Treemap is a very nice animated and structured data overview. Is it somehow possible to link callbacks to that figure for dash webpage usage? So for example in the px example you click on china and a modal dialoge opens or another function is triggered:

import plotly.express as px
import numpy as np
df = px.data.gapminder().query("year == 2007")
fig = px.treemap(df, path=[px.Constant('world'), 'continent', 'country'], values='pop',
                  color='lifeExp', hover_data=['iso_alpha'])
fig.show()

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles