mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
[echart] fix regression from v6
This commit is contained in:
parent
8429948d2c
commit
b79ed000ea
12 changed files with 13 additions and 2 deletions
|
|
@ -220,6 +220,7 @@ export class AccelerationFeesGraphComponent implements OnInit, OnChanges, OnDest
|
|||
},
|
||||
},
|
||||
legend: {
|
||||
top: 'top',
|
||||
data: [
|
||||
{
|
||||
name: this.totalBidBoostLabel,
|
||||
|
|
|
|||
|
|
@ -211,6 +211,7 @@ export class AddressGraphComponent implements OnChanges, OnDestroy {
|
|||
},
|
||||
graphic: graphicElements.length > 0 ? graphicElements : undefined,
|
||||
legend: (this.showLegend && !this.stateService.isAnyTestnet()) ? {
|
||||
top: 'top',
|
||||
data: [
|
||||
{
|
||||
name: $localize`:@@7e69426bd97a606d8ae6026762858e6e7c86a1fd:Balance`,
|
||||
|
|
@ -451,6 +452,7 @@ export class AddressGraphComponent implements OnChanges, OnDestroy {
|
|||
},
|
||||
graphic: graphicElements.length > 0 ? graphicElements : undefined,
|
||||
legend: {
|
||||
top: 'top',
|
||||
selected: this.selected,
|
||||
},
|
||||
dataZoom: this.allowZoom ? [{
|
||||
|
|
|
|||
|
|
@ -281,6 +281,7 @@ export class BlockFeeRatesGraphComponent implements OnInit {
|
|||
},
|
||||
},
|
||||
legend: (this.widget || data.series.length === 0) ? undefined : {
|
||||
top: 'top',
|
||||
padding: [10, 75],
|
||||
data: data.legends,
|
||||
selected: JSON.parse(this.storageService.getValue('fee_rates_legend') || 'null') ?? {
|
||||
|
|
|
|||
|
|
@ -187,6 +187,7 @@ export class BlockFeesGraphComponent implements OnInit {
|
|||
}
|
||||
},
|
||||
legend: data.blockFees.length === 0 ? undefined : {
|
||||
top: 'top',
|
||||
data: [
|
||||
{
|
||||
name: feesBtcLabel,
|
||||
|
|
|
|||
|
|
@ -240,6 +240,7 @@ export class BlockFeesSubsidyGraphComponent implements OnInit {
|
|||
}
|
||||
],
|
||||
legend: this.data.blockFees.length === 0 ? undefined : {
|
||||
top: 'top',
|
||||
data: [
|
||||
{
|
||||
name: this.subsidyLabel,
|
||||
|
|
|
|||
|
|
@ -183,6 +183,7 @@ export class BlockRewardsGraphComponent implements OnInit {
|
|||
}
|
||||
},
|
||||
legend: data.blockRewards.length === 0 ? undefined : {
|
||||
top: 'top',
|
||||
data: [
|
||||
{
|
||||
name: 'Rewards BTC',
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ export class BlockSizesWeightsGraphComponent implements OnInit {
|
|||
}
|
||||
},
|
||||
legend: data.sizes.length === 0 ? undefined : {
|
||||
padding: 10,
|
||||
top: 'top',
|
||||
data: [
|
||||
{
|
||||
name: $localize`:@@7faaaa08f56427999f3be41df1093ce4089bbd75:Size`,
|
||||
|
|
|
|||
|
|
@ -287,6 +287,7 @@ export class HashrateChartComponent implements OnInit {
|
|||
}
|
||||
},
|
||||
legend: (this.widget || data.hashrates.length === 0) ? undefined : {
|
||||
top: 'top',
|
||||
data: [
|
||||
{
|
||||
name: $localize`:@@79a9dc5b1caca3cbeb1733a19515edacc5fc7920:Hashrate`,
|
||||
|
|
|
|||
|
|
@ -250,6 +250,7 @@ export class HashrateChartPoolsComponent implements OnInit {
|
|||
}
|
||||
},
|
||||
legend: (this.isMobile() || data.series.length === 0) ? undefined : {
|
||||
top: 'top',
|
||||
data: data.legends
|
||||
},
|
||||
yAxis: data.series.length === 0 ? undefined : {
|
||||
|
|
|
|||
|
|
@ -240,6 +240,7 @@ export class PoolComponent implements OnInit, OnDestroy {
|
|||
}
|
||||
},
|
||||
legend: {
|
||||
top: 'top',
|
||||
data: [
|
||||
{
|
||||
name: $localize`:@@79a9dc5b1caca3cbeb1733a19515edacc5fc7920:Hashrate`,
|
||||
|
|
|
|||
|
|
@ -402,6 +402,7 @@ export class TreasuriesGraphComponent implements OnInit, OnChanges, OnDestroy {
|
|||
|
||||
this.chartOptions = {
|
||||
legend: {
|
||||
top: 'top',
|
||||
selected: this.selectedWallets,
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ export class LightningStatisticsChartComponent implements OnInit, OnChanges {
|
|||
}
|
||||
},
|
||||
legend: this.widget || data.channel_count.length === 0 ? undefined : {
|
||||
padding: 10,
|
||||
top: 'top',
|
||||
data: [
|
||||
{
|
||||
name: $localize`:@@807cf11e6ac1cde912496f764c176bdfdd6b7e19:Channels`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue