This commit is contained in:
shunmugam 2019-10-17 12:37:59 +05:30
parent 7726775534
commit 6fbe5bb6ae

View File

@ -1097,6 +1097,17 @@ export class GraphListComponent implements OnInit {
} }
blockminedFunc(mDate, ProgPow, Cuckoo, RandomX, ProgPowper, Cuckooper, RandomXper) { blockminedFunc(mDate, ProgPow, Cuckoo, RandomX, ProgPowper, Cuckooper, RandomXper) {
let dtickval;
if(mDate.length <10)
dtickval =2*24*60*60*1000
else if(mDate.length <20)
dtickval =4*24*60*60*1000
else if(mDate.length <40)
dtickval =6*24*60*60*1000
else
dtickval =8*24*60*60*1000
this.doubleareaGraphData = { this.doubleareaGraphData = {
data: [ data: [
{ {
@ -1165,7 +1176,7 @@ export class GraphListComponent implements OnInit {
fixedrange: true, fixedrange: true,
showgrid: true, showgrid: true,
tick0:mDate[0], tick0:mDate[0],
dtick: 4*24*60*60*1000 dtick: dtickval
}, },
yaxis: { yaxis: {
title: 'Percentage(%)', title: 'Percentage(%)',
@ -1256,6 +1267,17 @@ export class GraphListComponent implements OnInit {
}); });
} }
transactionlinechartFunc(Tdate, Ttotalinput, Ttotalkernal, Ttotaloutput) { transactionlinechartFunc(Tdate, Ttotalinput, Ttotalkernal, Ttotaloutput) {
let dtickval;
if(Tdate.length <10)
dtickval =2*24*60*60*1000
else if(Tdate.length <20)
dtickval =4*24*60*60*1000
else if(Tdate.length <40)
dtickval =6*24*60*60*1000
else
dtickval =8*24*60*60*1000
this.feeGraphData = { this.feeGraphData = {
data: [ data: [
{ {
@ -1303,7 +1325,7 @@ export class GraphListComponent implements OnInit {
rangemode: 'nonnegative', rangemode: 'nonnegative',
fixedrange: true, fixedrange: true,
tick0:Tdate[0], tick0:Tdate[0],
dtick: 4*24*60*60*1000 dtick: dtickval
}, },
yaxis: { yaxis: {
showline: false, showline: false,