[echart] fix regression from v6

This commit is contained in:
nymkappa 2026-07-07 12:36:30 +02:00
parent 8429948d2c
commit b79ed000ea
No known key found for this signature in database
GPG key ID: A7895A957BA87DBA
12 changed files with 13 additions and 2 deletions

View file

@ -220,6 +220,7 @@ export class AccelerationFeesGraphComponent implements OnInit, OnChanges, OnDest
},
},
legend: {
top: 'top',
data: [
{
name: this.totalBidBoostLabel,

View file

@ -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 ? [{

View file

@ -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') ?? {

View file

@ -187,6 +187,7 @@ export class BlockFeesGraphComponent implements OnInit {
}
},
legend: data.blockFees.length === 0 ? undefined : {
top: 'top',
data: [
{
name: feesBtcLabel,

View file

@ -240,6 +240,7 @@ export class BlockFeesSubsidyGraphComponent implements OnInit {
}
],
legend: this.data.blockFees.length === 0 ? undefined : {
top: 'top',
data: [
{
name: this.subsidyLabel,

View file

@ -183,6 +183,7 @@ export class BlockRewardsGraphComponent implements OnInit {
}
},
legend: data.blockRewards.length === 0 ? undefined : {
top: 'top',
data: [
{
name: 'Rewards BTC',

View file

@ -182,7 +182,7 @@ export class BlockSizesWeightsGraphComponent implements OnInit {
}
},
legend: data.sizes.length === 0 ? undefined : {
padding: 10,
top: 'top',
data: [
{
name: $localize`:@@7faaaa08f56427999f3be41df1093ce4089bbd75:Size`,

View file

@ -287,6 +287,7 @@ export class HashrateChartComponent implements OnInit {
}
},
legend: (this.widget || data.hashrates.length === 0) ? undefined : {
top: 'top',
data: [
{
name: $localize`:@@79a9dc5b1caca3cbeb1733a19515edacc5fc7920:Hashrate`,

View file

@ -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 : {

View file

@ -240,6 +240,7 @@ export class PoolComponent implements OnInit, OnDestroy {
}
},
legend: {
top: 'top',
data: [
{
name: $localize`:@@79a9dc5b1caca3cbeb1733a19515edacc5fc7920:Hashrate`,

View file

@ -402,6 +402,7 @@ export class TreasuriesGraphComponent implements OnInit, OnChanges, OnDestroy {
this.chartOptions = {
legend: {
top: 'top',
selected: this.selectedWallets,
}
};

View file

@ -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`,