Browse Source

Bugfix/issue in treemap chart component with empty holdings (#7213)

* Resolve issue with empty holdings

* Update changelog
pull/7212/head^2
Thomas Kaul 2 weeks ago
committed by GitHub
parent
commit
42ddd708b3
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 8
      libs/ui/src/lib/treemap-chart/treemap-chart.component.ts

1
CHANGELOG.md

@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
- Resolved an issue in the treemap chart component when the holdings list is empty
- Fixed the market condition of the benchmarks in the twitter bot service when values round to zero - Fixed the market condition of the benchmarks in the twitter bot service when values round to zero
## 3.19.1 - 2026-07-03 ## 3.19.1 - 2026-07-03

8
libs/ui/src/lib/treemap-chart/treemap-chart.component.ts

@ -207,6 +207,10 @@ export class GfTreemapChartComponent
datasets: [ datasets: [
{ {
backgroundColor: (context: GfTreemapScriptableContext) => { backgroundColor: (context: GfTreemapScriptableContext) => {
if (!context.raw) {
return undefined;
}
let annualizedNetPerformancePercent = let annualizedNetPerformancePercent =
getAnnualizedPerformancePercent({ getAnnualizedPerformancePercent({
daysInMarket: differenceInDays( daysInMarket: differenceInDays(
@ -239,6 +243,10 @@ export class GfTreemapChartComponent
labels: { labels: {
align: 'left', align: 'left',
color: (context: GfTreemapScriptableContext) => { color: (context: GfTreemapScriptableContext) => {
if (!context.raw) {
return undefined;
}
let annualizedNetPerformancePercent = let annualizedNetPerformancePercent =
getAnnualizedPerformancePercent({ getAnnualizedPerformancePercent({
daysInMarket: differenceInDays( daysInMarket: differenceInDays(

Loading…
Cancel
Save