42ee455 dda021c 42ee455 dda021c
1
2
3
4
5
6
7
8
9
10
import vizro.plotly.express as px gapminder = ( px.data.gapminder() .query("year == 2007 and country.isin(['United States', 'Pakistan', 'India', 'China', 'Indonesia'])") .sort_values("pop") ) fig = px.bar(gapminder, y="pop", x="country")