From 1cf3e1814bacdfb829c0ab56d09e48aa62a8fe27 Mon Sep 17 00:00:00 2001 From: softsimon Date: Thu, 26 Jan 2023 23:18:12 +0400 Subject: [PATCH] Fix node chart legend position error --- .../nodes-networks-chart/nodes-networks-chart.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/lightning/nodes-networks-chart/nodes-networks-chart.component.ts b/frontend/src/app/lightning/nodes-networks-chart/nodes-networks-chart.component.ts index abf104e2f..20ce5cc6f 100644 --- a/frontend/src/app/lightning/nodes-networks-chart/nodes-networks-chart.component.ts +++ b/frontend/src/app/lightning/nodes-networks-chart/nodes-networks-chart.component.ts @@ -413,7 +413,7 @@ export class NodesNetworksChartComponent implements OnInit { }], }; - if (isMobile()) { + if (isMobile() && this.chartOptions.legend) { // @ts-ignore this.chartOptions.legend.left = 50; }