Update generate_map.py

This commit is contained in:
Alexandre
2025-06-10 14:25:12 +02:00
committed by GitHub
parent 26a5448f3e
commit 88fdd8e9db

View File

@@ -102,8 +102,14 @@ def build_choropleth(percent_by_iso):
color_continuous_scale="Greens",
range_color=(0, max(vals) if vals else 1),
)
fig.update_layout(
coloraxis_colorbar={"title": "% stargazers"},
fig.update_layout(
    coloraxis_colorbar=dict(
        title="% stargazers",
        len=0.5,
        thickness=15,
        x=0.95,
        y=0.5,
    ),
margin=dict(l=0, r=0, t=0, b=0),
)
PNG_PATH.parent.mkdir(parents=True, exist_ok=True)