mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 22:04:06 +02:00
Update generate_map.py
This commit is contained in:
10
.github/generate_map.py
vendored
10
.github/generate_map.py
vendored
@@ -102,8 +102,14 @@ def build_choropleth(percent_by_iso):
|
|||||||
color_continuous_scale="Greens",
|
color_continuous_scale="Greens",
|
||||||
range_color=(0, max(vals) if vals else 1),
|
range_color=(0, max(vals) if vals else 1),
|
||||||
)
|
)
|
||||||
fig.update_layout(
|
fig.update_layout(
|
||||||
coloraxis_colorbar={"title": "% stargazers"},
|
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),
|
margin=dict(l=0, r=0, t=0, b=0),
|
||||||
)
|
)
|
||||||
PNG_PATH.parent.mkdir(parents=True, exist_ok=True)
|
PNG_PATH.parent.mkdir(parents=True, exist_ok=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user