|
@ -43,7 +43,7 @@ export class WorldMapChartComponent implements OnChanges, OnDestroy, OnInit { |
|
|
|
|
|
|
|
|
private initialize() { |
|
|
private initialize() { |
|
|
if (this.isInPercent) { |
|
|
if (this.isInPercent) { |
|
|
// Convert countries value to percentage
|
|
|
// Convert value of countries to percentage
|
|
|
let sum = 0; |
|
|
let sum = 0; |
|
|
Object.keys(this.countries).map((country) => { |
|
|
Object.keys(this.countries).map((country) => { |
|
|
sum += this.countries[country].value; |
|
|
sum += this.countries[country].value; |
|
|