diff --git a/libs/ui/src/lib/treemap-chart/treemap-chart.component.ts b/libs/ui/src/lib/treemap-chart/treemap-chart.component.ts index 676eae7c2..0e694f6dc 100644 --- a/libs/ui/src/lib/treemap-chart/treemap-chart.component.ts +++ b/libs/ui/src/lib/treemap-chart/treemap-chart.component.ts @@ -232,6 +232,7 @@ export class GfTreemapChartComponent if (context.raw._data.valueInBaseCurrency !== null) { const value = context.raw._data.valueInBaseCurrency; + return [ `${name ?? symbol}`, `${value.toLocaleString(this.locale, { @@ -242,6 +243,7 @@ export class GfTreemapChartComponent } else { const percentage = context.raw._data.allocationInPercentage * 100; + return [`${name ?? symbol}`, `${percentage.toFixed(2)}%`]; } },