Feature/Simplify labels in treemap chart (#3912)
* Simplify labels in treemap chart * Update changelog
This commit is contained in:
parent
c44da0bce3
commit
3289bd5cc9
@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
### Changed
|
||||
|
||||
- Improved the labels of the chart of the holdings tab on the home page (experimental)
|
||||
- Exposed the timeout of the portfolio snapshot computation as an environment variable (`PROCESSOR_PORTFOLIO_SNAPSHOT_COMPUTATION_TIMEOUT`)
|
||||
- Improved the portfolio unit tests to work with exported activity files
|
||||
|
||||
|
@ -151,13 +151,12 @@ export class GfTreemapChartComponent
|
||||
align: 'left',
|
||||
color: ['white'],
|
||||
display: true,
|
||||
font: [{ size: 14 }, { size: 11 }, { lineHeight: 2, size: 14 }],
|
||||
font: [{ size: 16 }, { lineHeight: 1.5, size: 14 }],
|
||||
formatter(ctx) {
|
||||
const netPerformancePercentWithCurrencyEffect =
|
||||
ctx.raw._data.netPerformancePercentWithCurrencyEffect;
|
||||
|
||||
return [
|
||||
ctx.raw._data.name,
|
||||
ctx.raw._data.symbol,
|
||||
`${netPerformancePercentWithCurrencyEffect > 0 ? '+' : ''}${(ctx.raw._data.netPerformancePercentWithCurrencyEffect * 100).toFixed(2)}%`
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user