Skip to content

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

Bugfix/unregister chartjs plugin datalabels (#414)

Thomas Kaulb9f0a575224b
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a86f164773..c0c3fef084 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## Unreleased
+
+### Fixed
+
+- Fixed the broken line charts showing value labels
+
## 1.59.0 - 11.10.2021
### Added
diff --git a/libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts b/libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts
index cf65e44f2b..9f8a4e4d6f 100644
--- a/libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts
+++ b/libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts
@@ -75,6 +75,7 @@ export class PortfolioProportionChartComponent
}
public ngOnDestroy() {
+ Chart.unregister(ChartDataLabels);
this.chart?.destroy();
}