|
|
@ -280,8 +280,8 @@ export class GfTreemapChartComponent |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const name = raw._data.name; |
|
|
const name = raw._data.assetProfile.name; |
|
|
const symbol = raw._data.symbol; |
|
|
const symbol = raw._data.assetProfile.symbol; |
|
|
|
|
|
|
|
|
return [ |
|
|
return [ |
|
|
isUUID(symbol) ? (name ?? symbol) : symbol, |
|
|
isUUID(symbol) ? (name ?? symbol) : symbol, |
|
|
@ -322,8 +322,10 @@ export class GfTreemapChartComponent |
|
|
['desc'] |
|
|
['desc'] |
|
|
) as PortfolioPosition[]; |
|
|
) as PortfolioPosition[]; |
|
|
|
|
|
|
|
|
const dataSource: DataSource = dataset[dataIndex].dataSource; |
|
|
const dataSource: DataSource = |
|
|
const symbol: string = dataset[dataIndex].symbol; |
|
|
dataset[dataIndex].assetProfile.dataSource; |
|
|
|
|
|
|
|
|
|
|
|
const symbol: string = dataset[dataIndex].assetProfile.symbol; |
|
|
|
|
|
|
|
|
this.treemapChartClicked.emit({ dataSource, symbol }); |
|
|
this.treemapChartClicked.emit({ dataSource, symbol }); |
|
|
} catch {} |
|
|
} catch {} |
|
|
@ -357,10 +359,12 @@ export class GfTreemapChartComponent |
|
|
callbacks: { |
|
|
callbacks: { |
|
|
label: ({ raw }: GfTreemapTooltipItem) => { |
|
|
label: ({ raw }: GfTreemapTooltipItem) => { |
|
|
const allocationInPercentage = `${(raw._data.allocationInPercentage * 100).toFixed(2)}%`; |
|
|
const allocationInPercentage = `${(raw._data.allocationInPercentage * 100).toFixed(2)}%`; |
|
|
const name = raw._data.name; |
|
|
const name = raw._data.assetProfile.name; |
|
|
|
|
|
|
|
|
const sign = |
|
|
const sign = |
|
|
raw._data.netPerformancePercentWithCurrencyEffect > 0 ? '+' : ''; |
|
|
raw._data.netPerformancePercentWithCurrencyEffect > 0 ? '+' : ''; |
|
|
const symbol = raw._data.symbol; |
|
|
|
|
|
|
|
|
const symbol = raw._data.assetProfile.symbol; |
|
|
|
|
|
|
|
|
const netPerformanceInPercentageWithSign = `${sign}${(raw._data.netPerformancePercentWithCurrencyEffect * 100).toFixed(2)}%`; |
|
|
const netPerformanceInPercentageWithSign = `${sign}${(raw._data.netPerformancePercentWithCurrencyEffect * 100).toFixed(2)}%`; |
|
|
|
|
|
|
|
|
|