From 9d20637dcbc0e34aaf005a50a940d813c45876b4 Mon Sep 17 00:00:00 2001 From: nymkappa Date: Tue, 14 Jun 2022 09:58:32 +0200 Subject: [PATCH] Hide bottom axis label for mempool and incoming tx charts on widgets --- .../incoming-transactions-graph.component.ts | 2 +- .../src/app/components/mempool-graph/mempool-graph.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/components/incoming-transactions-graph/incoming-transactions-graph.component.ts b/frontend/src/app/components/incoming-transactions-graph/incoming-transactions-graph.component.ts index 328742946..33ae2d320 100644 --- a/frontend/src/app/components/incoming-transactions-graph/incoming-transactions-graph.component.ts +++ b/frontend/src/app/components/incoming-transactions-graph/incoming-transactions-graph.component.ts @@ -127,7 +127,7 @@ export class IncomingTransactionsGraphComponent implements OnInit, OnChanges { }, xAxis: [ { - name: formatterXAxisLabel(this.locale, this.windowPreference), + name: this.template === 'widget' ? '' : formatterXAxisLabel(this.locale, this.windowPreference), nameLocation: 'middle', nameTextStyle: { padding: [20, 0, 0, 0], diff --git a/frontend/src/app/components/mempool-graph/mempool-graph.component.ts b/frontend/src/app/components/mempool-graph/mempool-graph.component.ts index dfb111fdb..04c7ddf69 100644 --- a/frontend/src/app/components/mempool-graph/mempool-graph.component.ts +++ b/frontend/src/app/components/mempool-graph/mempool-graph.component.ts @@ -319,7 +319,7 @@ export class MempoolGraphComponent implements OnInit, OnChanges { }, xAxis: [ { - name: formatterXAxisLabel(this.locale, this.windowPreference), + name: this.template === 'widget' ? '' : formatterXAxisLabel(this.locale, this.windowPreference), nameLocation: 'middle', nameTextStyle: { padding: [20, 0, 0, 0],