Feature/improve values of global heat map (#408)

* Convert value

* Update changelog
This commit is contained in:
Thomas Kaul
2021-10-04 21:22:42 +02:00
committed by GitHub
parent d1eedf9726
commit 15a61b7a20
2 changed files with 11 additions and 0 deletions

View File

@@ -54,6 +54,13 @@ export class WorldMapChartComponent implements OnChanges, OnDestroy, OnInit {
((this.countries[country].value * 100) / sum).toFixed(2)
);
});
} else {
// Convert value to fixed-point notation
Object.keys(this.countries).map((country) => {
this.countries[country].value = Number(
this.countries[country].value.toFixed(2)
);
});
}
this.svgMapElement = new svgMap({