Publication-ready Altair themes, chart factories, and choropleth maps based on the World Bank Group Data Visualization Style Guide.
Documentation: https://datapartnership.github.io/attaviz/
uv add attaviz
# or
pip install attavizAdd the optional maps extra for choropleths: pip install "attaviz[maps]".
import pandas as pd
import attaviz
attaviz.enable() # every chart now uses the WBG theme
data = pd.DataFrame(
{"country": ["Indonesia", "Malaysia"], "population": [280, 35]}
)
chart = attaviz.bar(
data,
category="country",
value="population",
title="Population by country (millions)",
)See the documentation site for the full gallery and reference.