Fix legend

This commit is contained in:
nymkappa 2022-09-08 19:03:37 +02:00
parent 1ead34d42d
commit 0f218ced47
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -209,6 +209,14 @@ export class NodesNetworksChartComponent implements OnInit {
}, },
icon: 'roundRect', icon: 'roundRect',
}, },
{
name: $localize`Clearnet & Tor`,
inactiveColor: 'rgb(110, 112, 121)',
textStyle: {
color: 'white',
},
icon: 'roundRect',
},
{ {
name: $localize`Unannounced`, name: $localize`Unannounced`,
inactiveColor: 'rgb(110, 112, 121)', inactiveColor: 'rgb(110, 112, 121)',
@ -219,10 +227,10 @@ export class NodesNetworksChartComponent implements OnInit {
}, },
], ],
selected: this.widget ? undefined : JSON.parse(this.storageService.getValue('nodes_networks_legend')) ?? { selected: this.widget ? undefined : JSON.parse(this.storageService.getValue('nodes_networks_legend')) ?? {
'Total': true, '$localize`Tor`': true,
'Tor': true, '$localize`Clearnet`': true,
'Clearnet': true, '$localize`Clearnet & Tor`': true,
'Unannounced': true, '$localize`Unannounced`': true,
} }
}, },
yAxis: data.tor_nodes.length === 0 ? undefined : [ yAxis: data.tor_nodes.length === 0 ? undefined : [