diff --git a/frontend/src/app/components/statistics/statistics.component.html b/frontend/src/app/components/statistics/statistics.component.html index 04cfb5548..c06ef4b37 100644 --- a/frontend/src/app/components/statistics/statistics.component.html +++ b/frontend/src/app/components/statistics/statistics.component.html @@ -45,7 +45,7 @@ [template]="'advanced'" [limitFee]="500" [height]="500" - [left]="50" + [left]="65" [data]="mempoolStats" > @@ -62,7 +62,7 @@
diff --git a/frontend/src/app/components/statistics/statistics.component.ts b/frontend/src/app/components/statistics/statistics.component.ts index 733762764..c7f0042d9 100644 --- a/frontend/src/app/components/statistics/statistics.component.ts +++ b/frontend/src/app/components/statistics/statistics.component.ts @@ -1,6 +1,5 @@ import { Component, OnInit, LOCALE_ID, Inject } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; -import { formatDate } from '@angular/common'; import { FormGroup, FormBuilder } from '@angular/forms'; import { of, merge} from 'rxjs'; import { switchMap } from 'rxjs/operators'; @@ -31,7 +30,6 @@ export class StatisticsComponent implements OnInit { mempoolTransactionsWeightPerSecondData: any; radioGroupForm: FormGroup; - inverted: boolean; graphWindowPreference: String; constructor( @@ -48,7 +46,6 @@ export class StatisticsComponent implements OnInit { ngOnInit() { this.seoService.setTitle($localize`:@@5d4f792f048fcaa6df5948575d7cb325c9393383:Graphs`); this.stateService.networkChanged$.subscribe((network) => this.network = network); - this.inverted = this.storageService.getValue('inverted-graph') === 'true'; this.graphWindowPreference = this.storageService.getValue('graphWindowPreference') ? this.storageService.getValue('graphWindowPreference').trim() : '2h'; const isMobile = window.innerWidth <= 767.98; let labelHops = isMobile ? 48 : 24; @@ -124,11 +121,6 @@ export class StatisticsComponent implements OnInit { }; } - invertGraph() { - this.storageService.setValue('inverted-graph', !this.inverted); - document.location.reload(); - } - saveGraphPreference() { this.storageService.setValue('graphWindowPreference', this.radioGroupForm.controls.dateSpan.value); } diff --git a/frontend/src/app/dashboard/dashboard.component.html b/frontend/src/app/dashboard/dashboard.component.html index 6a521e4d2..cbda3076a 100644 --- a/frontend/src/app/dashboard/dashboard.component.html +++ b/frontend/src/app/dashboard/dashboard.component.html @@ -64,7 +64,10 @@

- +