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

@ -44,7 +44,7 @@
<hr> <hr>
</div> </div>
<div style="height: 250px;" *ngIf="(mempoolStats$ | async) as mempoolStats"> <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> </div>
</div> </div>

View File

@ -194,7 +194,7 @@ export class DashboardComponent implements OnInit {
}, },
axisX: { axisX: {
labelInterpolationFnc: (value: any, index: any) => index % 24 === 0 ? formatDate(value, 'HH:mm', this.locale) : null, labelInterpolationFnc: (value: any, index: any) => index % 24 === 0 ? formatDate(value, 'HH:mm', this.locale) : null,
offset: 10 offset: 20
}, },
plugins: [ plugins: [
Chartist.plugins.ctTargetLine({ Chartist.plugins.ctTargetLine({