Browse Source

Clean up

pull/3912/head
Thomas Kaul 11 months ago
parent
commit
96936863c6
  1. 11
      libs/ui/src/lib/treemap-chart/treemap-chart.component.ts

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

@ -151,15 +151,18 @@ export class GfTreemapChartComponent
align: 'left', align: 'left',
color: ['white'], color: ['white'],
display: true, display: true,
font: { size: 14, lineHeight: 2 }, font: [{ size: 16 }, { lineHeight: 1.5, size: 14 }],
formatter(ctx) { formatter(ctx) {
const netPerformancePercentWithCurrencyEffect = ctx.raw._data.netPerformancePercentWithCurrencyEffect; const netPerformancePercentWithCurrencyEffect =
ctx.raw._data.netPerformancePercentWithCurrencyEffect;
return [ return [
`${(netPerformancePercentWithCurrencyEffect > 0 ? '+' : '')}${(ctx.raw._data.netPerformancePercentWithCurrencyEffect * 100).toFixed(2)}%` ctx.raw._data.symbol,
`${netPerformancePercentWithCurrencyEffect > 0 ? '+' : ''}${(ctx.raw._data.netPerformancePercentWithCurrencyEffect * 100).toFixed(2)}%`
]; ];
}, },
position: 'top' position: 'top'
}, },
spacing: 1, spacing: 1,
tree: this.holdings tree: this.holdings
} }

Loading…
Cancel
Save