Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Bugfix/fix rounding of y axis ticks in benchmark comparator (#1521)

Thomas Kaul5293de14cd81
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fdec7398f8..f0b351b004 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,6 +15,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Upgraded `color` from version `4.0.1` to `4.2.3`
+### Fixed
+
+- Fixed the rounding of the y-axis ticks in the benchmark comparator
+
## 1.219.0 - 2022-12-17
### Added
diff --git a/apps/client/src/app/components/benchmark-comparator/benchmark-comparator.component.ts b/apps/client/src/app/components/benchmark-comparator/benchmark-comparator.component.ts
index f87e83a7a4..8adffa0051 100644
--- a/apps/client/src/app/components/benchmark-comparator/benchmark-comparator.component.ts
+++ b/apps/client/src/app/components/benchmark-comparator/benchmark-comparator.component.ts
@@ -187,7 +187,7 @@ export class BenchmarkComparatorComponent implements OnChanges, OnDestroy {
position: 'right',
ticks: {
callback: (value: number) => {
- return `${value} %`;
+ return `${value.toFixed(2)} %`;
},
display: true,
mirror: true,