File size: 202 Bytes
42ee455
 
b699ae9
42ee455
b699ae9
1
2
3
4
5
6
import vizro.plotly.express as px

gapminder = px.data.gapminder().query("year == 2007")

fig = px.treemap(gapminder, path=[px.Constant("world"), "continent", "country"], values="pop", color="lifeExp")