From 018e95e648dde412cfd8d24688c53a60db24b36c Mon Sep 17 00:00:00 2001 From: softsimon Date: Mon, 26 Oct 2020 23:12:32 +0700 Subject: [PATCH] Fixing missing dashboard graph labels in Firefox. --- .../src/app/components/mempool-graph/mempool-graph.component.ts | 2 +- frontend/src/app/dashboard/dashboard.component.html | 2 +- frontend/src/app/dashboard/dashboard.component.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 e976eab13..734ae2030 100644 --- a/frontend/src/app/components/mempool-graph/mempool-graph.component.ts +++ b/frontend/src/app/components/mempool-graph/mempool-graph.component.ts @@ -54,7 +54,7 @@ export class MempoolGraphComponent implements OnInit, OnChanges { case '1y': value = formatDate(value, 'dd/MM', this.locale); } - return index % labelHops === 0 ? value : null; + return index % labelHops === 0 ? value : null; }; this.mempoolVsizeFeesOptions = { diff --git a/frontend/src/app/dashboard/dashboard.component.html b/frontend/src/app/dashboard/dashboard.component.html index 107285713..998f3ddc1 100644 --- a/frontend/src/app/dashboard/dashboard.component.html +++ b/frontend/src/app/dashboard/dashboard.component.html @@ -44,7 +44,7 @@
- +
diff --git a/frontend/src/app/dashboard/dashboard.component.ts b/frontend/src/app/dashboard/dashboard.component.ts index b7a2736e5..102098bee 100644 --- a/frontend/src/app/dashboard/dashboard.component.ts +++ b/frontend/src/app/dashboard/dashboard.component.ts @@ -194,7 +194,7 @@ export class DashboardComponent implements OnInit { }, axisX: { labelInterpolationFnc: (value: any, index: any) => index % 24 === 0 ? formatDate(value, 'HH:mm', this.locale) : null, - offset: 10 + offset: 20 }, plugins: [ Chartist.plugins.ctTargetLine({