From b9f0a575224b4286a7aa3f188ed5049018a7a34e Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Tue, 12 Oct 2021 09:23:37 +0200 Subject: [PATCH] Bugfix/unregister chartjs plugin datalabels (#414) * Unregister chartjs-plugin-datalabels * Update changelog --- CHANGELOG.md | 6 ++++++ .../portfolio-proportion-chart.component.ts | 1 + 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a86f16477..c0c3fef08 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 cf65e44f2..9f8a4e4d6 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(); }