Browse Source

fix formatting

pull/3897/head
Uday R 11 months ago
parent
commit
a5675559bc
  1. 8
      libs/ui/src/lib/treemap-chart/treemap-chart.component.ts

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

@ -46,11 +46,11 @@ const { gray, green, red } = require('open-color');
export class GfTreemapChartComponent export class GfTreemapChartComponent
implements AfterViewInit, OnChanges, OnDestroy implements AfterViewInit, OnChanges, OnDestroy
{ {
@Input() baseCurrency: string;
@Input() colorScheme: ColorScheme;
@Input() cursor: string; @Input() cursor: string;
@Input() dateRange: DateRange; @Input() dateRange: DateRange;
@Input() holdings: PortfolioPosition[]; @Input() holdings: PortfolioPosition[];
@Input() colorScheme: ColorScheme;
@Input() baseCurrency: string;
@Input() locale = getLocale(); @Input() locale = getLocale();
@Output() treemapChartClicked = new EventEmitter<AssetProfileIdentifier>(); @Output() treemapChartClicked = new EventEmitter<AssetProfileIdentifier>();
@ -63,7 +63,7 @@ export class GfTreemapChartComponent
public isLoading = true; public isLoading = true;
public constructor() { public constructor() {
Chart.register(LinearScale, TreemapController, TreemapElement, Tooltip); Chart.register(LinearScale, Tooltip, TreemapController, TreemapElement);
} }
public ngAfterViewInit() { public ngAfterViewInit() {
@ -169,6 +169,7 @@ export class GfTreemapChartComponent
} }
] ]
}; };
if (this.chartCanvas) { if (this.chartCanvas) {
if (this.chart) { if (this.chart) {
this.chart.data = data; this.chart.data = data;
@ -216,6 +217,7 @@ export class GfTreemapChartComponent
this.isLoading = false; this.isLoading = false;
} }
private getTooltipPluginConfiguration() { private getTooltipPluginConfiguration() {
return { return {
...getTooltipOptions({ ...getTooltipOptions({

Loading…
Cancel
Save