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; }