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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
9 additions and
0 deletions
-
CHANGELOG.md
-
libs/ui/src/lib/treemap-chart/treemap-chart.component.ts
|
|
|
@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
### 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 |
|
|
|
|
|
|
|
## 3.19.1 - 2026-07-03 |
|
|
|
|
|
|
|
@ -207,6 +207,10 @@ export class GfTreemapChartComponent |
|
|
|
datasets: [ |
|
|
|
{ |
|
|
|
backgroundColor: (context: GfTreemapScriptableContext) => { |
|
|
|
if (!context.raw) { |
|
|
|
return undefined; |
|
|
|
} |
|
|
|
|
|
|
|
let annualizedNetPerformancePercent = |
|
|
|
getAnnualizedPerformancePercent({ |
|
|
|
daysInMarket: differenceInDays( |
|
|
|
@ -239,6 +243,10 @@ export class GfTreemapChartComponent |
|
|
|
labels: { |
|
|
|
align: 'left', |
|
|
|
color: (context: GfTreemapScriptableContext) => { |
|
|
|
if (!context.raw) { |
|
|
|
return undefined; |
|
|
|
} |
|
|
|
|
|
|
|
let annualizedNetPerformancePercent = |
|
|
|
getAnnualizedPerformancePercent({ |
|
|
|
daysInMarket: differenceInDays( |
|
|
|
|