Fix legend
This commit is contained in:
parent
1ead34d42d
commit
0f218ced47
@ -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 : [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user