formating population for display

This commit is contained in:
frankknoll
2022-03-02 15:18:48 +01:00
parent 70802b83f3
commit 78af62f0a7

View File

@@ -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 });
});
}