Fixing missing dashboard graph labels in Firefox.

This commit is contained in:
softsimon 2020-10-26 23:12:32 +07:00
parent 1fc4e9530d
commit 018e95e648
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
3 changed files with 3 additions and 3 deletions

View File

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

View File

@ -44,7 +44,7 @@
<hr>
</div>
<div style="height: 250px;" *ngIf="(mempoolStats$ | async) as mempoolStats">
<app-mempool-graph [data]="mempoolStats.mempool" [showLegend]="false" [offsetX]="10" [small]="true"></app-mempool-graph>
<app-mempool-graph [data]="mempoolStats.mempool" [showLegend]="false" [offsetX]="20" [small]="true"></app-mempool-graph>
</div>
</div>
</div>

View File

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