Update graph tick intervals - Hide label in zoom component - Show hour on 1y graphs

This commit is contained in:
nymkappa
2021-12-14 16:33:17 +09:00
parent e40368af76
commit d12b1f593c
4 changed files with 5 additions and 3 deletions

View File

@@ -74,6 +74,7 @@ export class IncomingTransactionsGraphComponent implements OnInit, OnChanges {
maxSpan: 100,
minSpan: 10,
}, {
showDetail: false,
show: (this.template === 'advanced') ? true : false,
type: 'slider',
brushSelect: false,

View File

@@ -289,6 +289,7 @@ export class MempoolGraphComponent implements OnInit, OnChanges {
maxSpan: 100,
minSpan: 10,
}, {
showDetail: false,
show: (this.template === 'advanced' && this.showZoom) ? true : false,
type: 'slider',
brushSelect: false,

View File

@@ -19,8 +19,8 @@ export const formatterXAxis = (
case '1m':
case '3m':
case '6m':
return date.toLocaleTimeString(locale, { month: 'short', day: 'numeric', hour: 'numeric' });
case '1y':
return date.toLocaleTimeString(locale, { month: 'short', day: 'numeric', hour: 'numeric' });
case '2y':
case '3y':
return date.toLocaleDateString(locale, { year: 'numeric', month: 'short', day: 'numeric' });