Browse Source
Feature/improve values of global heat map (#408)
* Convert value
* Update changelog
pull/411/head
Thomas Kaul
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
11 additions and
0 deletions
-
CHANGELOG.md
-
apps/client/src/app/components/world-map-chart/world-map-chart.component.ts
|
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
|
## Unreleased |
|
|
## Unreleased |
|
|
|
|
|
|
|
|
|
|
|
### Changed |
|
|
|
|
|
|
|
|
|
|
|
- Changed the values of the global heat map to fixed-point notation |
|
|
|
|
|
|
|
|
### Fixed |
|
|
### Fixed |
|
|
|
|
|
|
|
|
- Fixed the links of cryptocurrency assets in the positions table |
|
|
- Fixed the links of cryptocurrency assets in the positions table |
|
|
|
@ -54,6 +54,13 @@ export class WorldMapChartComponent implements OnChanges, OnDestroy, OnInit { |
|
|
((this.countries[country].value * 100) / sum).toFixed(2) |
|
|
((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({ |
|
|
this.svgMapElement = new svgMap({ |
|
|