From 9431db7378c61532970c7623497a5d78172da9e0 Mon Sep 17 00:00:00 2001 From: tushar-agarwal7 Date: Sat, 12 Oct 2024 06:53:57 +0000 Subject: [PATCH] Simplify labels in treemap chart --- libs/ui/src/lib/treemap-chart/treemap-chart.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 0e694f6dc..d161455f2 100644 --- a/libs/ui/src/lib/treemap-chart/treemap-chart.component.ts +++ b/libs/ui/src/lib/treemap-chart/treemap-chart.component.ts @@ -155,13 +155,13 @@ export class GfTreemapChartComponent formatter(ctx) { const netPerformancePercentWithCurrencyEffect = ctx.raw._data.netPerformancePercentWithCurrencyEffect; - + return [ - ctx.raw._data.name, - ctx.raw._data.symbol, + ctx.raw._data.symbol, // Only show the symbol `${netPerformancePercentWithCurrencyEffect > 0 ? '+' : ''}${(ctx.raw._data.netPerformancePercentWithCurrencyEffect * 100).toFixed(2)}%` ]; - }, + } + , position: 'top' }, spacing: 1,