Browse Source

Merge branch 'main' into feature/improve-number-formatting-of-y-axis-in-investment-chart-component

pull/5633/head
Thomas Kaul 1 month ago
committed by GitHub
parent
commit
f9c4fb73c5
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 5
      libs/ui/src/lib/line-chart/line-chart.component.ts

1
CHANGELOG.md

@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Improved the number formatting of the y-axis labels in the investment chart component
- Localized the number formatting of the y-axis labels in the line chart component
- Improved the wording of the 4% rule in the _FIRE_ section
- Improved the language localization for German (`de`)

5
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 tickValue.toLocaleString(this.locale, {
maximumFractionDigits: 2,
minimumFractionDigits: 2
});
}
return tickValue;

Loading…
Cancel
Save