Address balance graph: hide usd on non-mainnet networks

This commit is contained in:
natsoni 2024-06-23 18:59:50 +09:00
parent 61c9debcca
commit 8a43ed1a61
No known key found for this signature in database
GPG Key ID: C65917583181743B

View File

@ -196,7 +196,7 @@ export class AddressGraphComponent implements OnChanges, OnDestroy {
right: this.right, right: this.right,
left: this.left, left: this.left,
}, },
legend: { legend: !this.stateService.isAnyTestnet() ? {
data: [ data: [
{ {
name: $localize`:@@7e69426bd97a606d8ae6026762858e6e7c86a1fd:Balance`, name: $localize`:@@7e69426bd97a606d8ae6026762858e6e7c86a1fd:Balance`,
@ -219,7 +219,7 @@ export class AddressGraphComponent implements OnChanges, OnDestroy {
formatter: function (name) { formatter: function (name) {
return name === 'Fiat' ? 'USD' : 'BTC'; return name === 'Fiat' ? 'USD' : 'BTC';
} }
}, } : undefined,
tooltip: { tooltip: {
show: !this.isMobile(), show: !this.isMobile(),
trigger: 'axis', trigger: 'axis',
@ -359,7 +359,7 @@ export class AddressGraphComponent implements OnChanges, OnDestroy {
type: 'line', type: 'line',
smooth: false, smooth: false,
step: 'end' step: 'end'
}, }, !this.stateService.isAnyTestnet() ?
{ {
name: 'Fiat', name: 'Fiat',
yAxisIndex: 1, yAxisIndex: 1,
@ -374,7 +374,7 @@ export class AddressGraphComponent implements OnChanges, OnDestroy {
type: 'line', type: 'line',
smooth: false, smooth: false,
step: 'end' step: 'end'
} } : undefined
], ],
dataZoom: this.allowZoom ? [{ dataZoom: this.allowZoom ? [{
type: 'inside', type: 'inside',