From 9c229624f41f8c1a116af95e499fedb03c12f21c Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 4 Oct 2026 11:52:19 +0200 Subject: [PATCH] Fix percent formatting in treemap chart --- libs/ui/src/lib/treemap-chart/treemap-chart.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 f7e086ab36..11c7edbf63 100644 --- a/libs/ui/src/lib/treemap-chart/treemap-chart.component.ts +++ b/libs/ui/src/lib/treemap-chart/treemap-chart.component.ts @@ -397,7 +397,12 @@ export class GfTreemapChartComponent label: (context: TooltipItem<'treemap'>) => { const raw = context.raw as GfTreemapDataPoint; - const allocationInPercentage = `${(raw._data.allocationInPercentage * 100).toFixed(2)}%`; + const allocationInPercentage = `${( + raw._data.allocationInPercentage * 100 + ).toLocaleString(this.locale(), { + maximumFractionDigits: 2, + minimumFractionDigits: 2 + })}%`; const name = getHoldingName(raw._data.assetProfile); const netPerformanceInPercentageWithSign = `${(