From 78af62f0a7c515018fed4b7c24ef453c2519302d Mon Sep 17 00:00:00 2001 From: frankknoll Date: Wed, 2 Mar 2022 15:18:48 +0100 Subject: [PATCH] formating population for display --- docs/intensivstationen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/intensivstationen.js b/docs/intensivstationen.js index 741ca480552..4f50b3cc2d7 100644 --- a/docs/intensivstationen.js +++ b/docs/intensivstationen.js @@ -5,7 +5,7 @@ function displayIntensiveCareCapacitiesChart( fetch(`data/intensivstationen/intensivstationen-${kreisValue}.json`) .then(response => response.json()) .then(json => { - populationElement.textContent = json.population; + populationElement.textContent = new Intl.NumberFormat().format(json.population); intensiveCareCapacitiesChartView.displayChart({ data: json.data, title: kreisText }); }); }