Skip to content

Commit 4ce7999

Browse files
fix(currentness): show % as integer
1 parent b29c0e2 commit 4ce7999

File tree

7 files changed

+695
-695
lines changed

7 files changed

+695
-695
lines changed

ohsome_quality_api/indicators/currentness/indicator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def create_figure(self):
292292
(Color.GREEN, Color.YELLOW, Color.RED),
293293
):
294294
contrib_abs_text = [f"{c:.2f}{unit}" for c in bucket.contrib_abs]
295-
contrib_rel_text = [f"{c:.2f}%" for c in bucket.contrib_rel]
295+
contrib_rel_text = [f"{c * 100:.2f}%" for c in bucket.contrib_rel]
296296
timestamps_text = [ts.strftime("%b %Y") for ts in bucket.timestamps]
297297
customdata = list(zip(contrib_rel_text, contrib_abs_text, timestamps_text))
298298
hovertemplate = (

0 commit comments

Comments
 (0)