Browse Source

fix(lint): resolve errors

pull/6264/head
KenTandrian 2 days ago
parent
commit
4295cf9ef5
  1. 13
      libs/common/src/lib/chart-helper.ts
  2. 2
      libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts

13
libs/common/src/lib/chart-helper.ts

@ -52,16 +52,8 @@ export function getTooltipOptions({
bodyColor: `rgb(${getTextColor(colorScheme)})`, bodyColor: `rgb(${getTextColor(colorScheme)})`,
borderWidth: 1, borderWidth: 1,
borderColor: `rgba(${getTextColor(colorScheme)}, 0.1)`, borderColor: `rgba(${getTextColor(colorScheme)}, 0.1)`,
// @ts-ignore
callbacks: { callbacks: {
afterBody: () => '',
afterFooter: () => '',
afterLabel: () => '',
afterTitle: () => '',
beforeBody: () => '',
beforeFooter: () => '',
beforeLabel: () => '',
beforeTitle: () => '',
footer: () => '',
label: (context) => { label: (context) => {
let label = context.dataset.label ?? ''; let label = context.dataset.label ?? '';
if (label) { if (label) {
@ -85,9 +77,6 @@ export function getTooltipOptions({
} }
return label; return label;
}, },
labelColor: () => {},
labelPointStyle: () => {},
labelTextColor: () => {},
title: (contexts) => { title: (contexts) => {
if (groupBy) { if (groupBy) {
// @ts-ignore // @ts-ignore

2
libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts

@ -364,7 +364,7 @@ export class GfPortfolioProportionChartComponent
// @ts-ignore // @ts-ignore
const symbol: string = event.chart.data.labels[dataIndex]; const symbol: string = event.chart.data.labels[dataIndex];
const dataSource = this.data[symbol]?.dataSource!; const dataSource = this.data[symbol].dataSource!;
this.proportionChartClicked.emit({ dataSource, symbol }); this.proportionChartClicked.emit({ dataSource, symbol });
} catch {} } catch {}

Loading…
Cancel
Save