From d9cdf758e5f2d9fc0b1865f065b738d04dca7dc7 Mon Sep 17 00:00:00 2001 From: David Requeno Date: Sun, 28 Sep 2025 23:06:17 -0600 Subject: [PATCH] Task/format y-axis tick labels with toLocaleString based on locale --- libs/ui/src/lib/line-chart/line-chart.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/ui/src/lib/line-chart/line-chart.component.ts b/libs/ui/src/lib/line-chart/line-chart.component.ts index e7f8b132e..40d27326e 100644 --- a/libs/ui/src/lib/line-chart/line-chart.component.ts +++ b/libs/ui/src/lib/line-chart/line-chart.component.ts @@ -261,7 +261,10 @@ export class GfLineChartComponent } if (typeof tickValue === 'number') { - return tickValue.toFixed(2); + return Number(tickValue).toLocaleString(this.locale, { + minimumFractionDigits: 2, + maximumFractionDigits: 2 + }); } return tickValue;