Fix tick
This commit is contained in:
parent
a6eb3c56fb
commit
9d9b023e0e
@ -973,6 +973,19 @@ export class GraphListComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
transcationfeeFunc(TfDate, TfFee) {
|
transcationfeeFunc(TfDate, TfFee) {
|
||||||
|
|
||||||
|
|
||||||
|
let dtickval;
|
||||||
|
if(TfDate.length <10)
|
||||||
|
dtickval =2*24*60*60*1000
|
||||||
|
else if(TfDate.length <20)
|
||||||
|
dtickval =4*24*60*60*1000
|
||||||
|
else if(TfDate.length <40)
|
||||||
|
dtickval =6*24*60*60*1000
|
||||||
|
else
|
||||||
|
dtickval =8*24*60*60*1000
|
||||||
|
|
||||||
|
|
||||||
this.transcationGraphData = {
|
this.transcationGraphData = {
|
||||||
data: [
|
data: [
|
||||||
{
|
{
|
||||||
@ -996,7 +1009,9 @@ export class GraphListComponent implements OnInit {
|
|||||||
tickformat: '%m-%d',
|
tickformat: '%m-%d',
|
||||||
rangemode: 'nonnegative',
|
rangemode: 'nonnegative',
|
||||||
fixedrange: true,
|
fixedrange: true,
|
||||||
showgrid: true,
|
showgrid: true,
|
||||||
|
tick0:TfDate[0],
|
||||||
|
dtick:dtickval,
|
||||||
tickfont: {
|
tickfont: {
|
||||||
size: 11
|
size: 11
|
||||||
}
|
}
|
||||||
@ -1026,6 +1041,17 @@ export class GraphListComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
growthFunc(gDate, gReward, gaddedreward, range) {
|
growthFunc(gDate, gReward, gaddedreward, range) {
|
||||||
|
|
||||||
|
let dtickval;
|
||||||
|
if(gDate.length <10)
|
||||||
|
dtickval =2*24*60*60*1000
|
||||||
|
else if(gDate.length <20)
|
||||||
|
dtickval =4*24*60*60*1000
|
||||||
|
else if(gDate.length <40)
|
||||||
|
dtickval =6*24*60*60*1000
|
||||||
|
else
|
||||||
|
dtickval =8*24*60*60*1000
|
||||||
|
|
||||||
this.growthGraphData = {
|
this.growthGraphData = {
|
||||||
data: [
|
data: [
|
||||||
{
|
{
|
||||||
@ -1056,7 +1082,9 @@ export class GraphListComponent implements OnInit {
|
|||||||
tickangle: -45,
|
tickangle: -45,
|
||||||
rangemode: 'nonnegative',
|
rangemode: 'nonnegative',
|
||||||
fixedrange: true,
|
fixedrange: true,
|
||||||
showgrid: true
|
showgrid: true,
|
||||||
|
tick0:gDate[0],
|
||||||
|
dtick:dtickval
|
||||||
},
|
},
|
||||||
yaxis: {
|
yaxis: {
|
||||||
title: 'Total Reward Supply',
|
title: 'Total Reward Supply',
|
||||||
|
Loading…
Reference in New Issue
Block a user