mirror of
https://github.com/mempool/mempool.git
synced 2024-11-20 10:21:52 +01:00
Address balance graph: hide usd on non-mainnet networks
This commit is contained in:
parent
61c9debcca
commit
8a43ed1a61
@ -196,7 +196,7 @@ export class AddressGraphComponent implements OnChanges, OnDestroy {
|
||||
right: this.right,
|
||||
left: this.left,
|
||||
},
|
||||
legend: {
|
||||
legend: !this.stateService.isAnyTestnet() ? {
|
||||
data: [
|
||||
{
|
||||
name: $localize`:@@7e69426bd97a606d8ae6026762858e6e7c86a1fd:Balance`,
|
||||
@ -219,7 +219,7 @@ export class AddressGraphComponent implements OnChanges, OnDestroy {
|
||||
formatter: function (name) {
|
||||
return name === 'Fiat' ? 'USD' : 'BTC';
|
||||
}
|
||||
},
|
||||
} : undefined,
|
||||
tooltip: {
|
||||
show: !this.isMobile(),
|
||||
trigger: 'axis',
|
||||
@ -359,7 +359,7 @@ export class AddressGraphComponent implements OnChanges, OnDestroy {
|
||||
type: 'line',
|
||||
smooth: false,
|
||||
step: 'end'
|
||||
},
|
||||
}, !this.stateService.isAnyTestnet() ?
|
||||
{
|
||||
name: 'Fiat',
|
||||
yAxisIndex: 1,
|
||||
@ -374,7 +374,7 @@ export class AddressGraphComponent implements OnChanges, OnDestroy {
|
||||
type: 'line',
|
||||
smooth: false,
|
||||
step: 'end'
|
||||
}
|
||||
} : undefined
|
||||
],
|
||||
dataZoom: this.allowZoom ? [{
|
||||
type: 'inside',
|
||||
|
Loading…
Reference in New Issue
Block a user