|
|
@ -33,10 +33,7 @@ import Color from 'color'; |
|
|
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; |
|
|
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; |
|
|
import OpenColor from 'open-color'; |
|
|
import OpenColor from 'open-color'; |
|
|
|
|
|
|
|
|
export interface PortfolioProportionChartClickEvent { |
|
|
import { PortfolioProportionChartClickEvent } from './interfaces/interfaces'; |
|
|
dataSource?: DataSource; |
|
|
|
|
|
symbol: string; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const { |
|
|
const { |
|
|
blue, |
|
|
blue, |
|
|
@ -359,7 +356,9 @@ export class GfPortfolioProportionChartComponent |
|
|
const symbol = chart.data.labels?.[dataIndex] as string; |
|
|
const symbol = chart.data.labels?.[dataIndex] as string; |
|
|
const dataSource = this.data[symbol]?.dataSource; |
|
|
const dataSource = this.data[symbol]?.dataSource; |
|
|
|
|
|
|
|
|
this.proportionChartClicked.emit({ dataSource, symbol }); |
|
|
this.proportionChartClicked.emit( |
|
|
|
|
|
dataSource ? { dataSource, symbol } : { accountId: symbol } |
|
|
|
|
|
); |
|
|
} catch {} |
|
|
} catch {} |
|
|
}, |
|
|
}, |
|
|
onHover: (event, chartElement) => { |
|
|
onHover: (event, chartElement) => { |
|
|
|