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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
5 additions and
1 deletions
-
CHANGELOG.md
-
libs/ui/src/lib/line-chart/line-chart.component.ts
|
|
|
@ -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`) |
|
|
|
|
|
|
|
|
|
|
|
@ -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; |
|
|
|
|