Changes for all graph interval

This commit is contained in:
shunmugam 2019-09-24 13:15:46 +05:30
parent 99cdea84e5
commit a5f974d743

View File

@ -148,13 +148,14 @@ export class GraphDetailComponent implements OnInit {
//console.log(this.hashdata); //console.log(this.hashdata);
this.hashdata.layout.height = 300; this.hashdata.layout.height = 300;
this.title = 'Transaction Fees'; this.title = 'Transaction Fees';
this.selectedItem = 3;
this.titleService.setTitle( this.titleService.setTitle(
this.route.snapshot.data.title + ' - ' + this.title, this.route.snapshot.data.title + ' - ' + this.title,
); );
}); });
break; break;
case 'supply-growth': case 'supply-growth':
this.comp.Growthreq().then(res => { this.comp.Growthreq("","","1 week").then(res => {
this.hashdata = this.comp.growthGraphData; this.hashdata = this.comp.growthGraphData;
this.hashdata.layout.height = 300; this.hashdata.layout.height = 300;
this.title = 'Supply Growth'; this.title = 'Supply Growth';
@ -164,7 +165,7 @@ export class GraphDetailComponent implements OnInit {
}); });
break; break;
case 'blocks-mined': case 'blocks-mined':
this.comp.Blockminedreq().then(res => { this.comp.Blockminedreq('','','1 week').then(res => {
this.hashdata = this.comp.doubleareaGraphData; this.hashdata = this.comp.doubleareaGraphData;
this.hashdata.layout.height = 300; this.hashdata.layout.height = 300;
this.title = 'Blocks Mined'; this.title = 'Blocks Mined';
@ -186,7 +187,7 @@ export class GraphDetailComponent implements OnInit {
// }); // });
break; break;
case 'avg-block-interval': case 'avg-block-interval':
this.comp.Blockspersecreq().then(res => { this.comp.Blockspersecreq('','','1 week').then(res => {
this.hashdata = this.comp.areaGraphData; this.hashdata = this.comp.areaGraphData;
this.hashdata.layout.height = 300; this.hashdata.layout.height = 300;
// this.hashdata.layout.width = // this.hashdata.layout.width =
@ -198,7 +199,7 @@ export class GraphDetailComponent implements OnInit {
}); });
break; break;
case 'blocks-by-algorithm': case 'blocks-by-algorithm':
this.comp.stackchartreq().then(res => { this.comp.stackchartreq('','','1 week').then(res => {
this.hashdata = this.comp.stackGraphData; this.hashdata = this.comp.stackGraphData;
this.hashdata.layout.height = 300; this.hashdata.layout.height = 300;
this.title = 'Blocks by Algorithm'; this.title = 'Blocks by Algorithm';
@ -218,7 +219,7 @@ export class GraphDetailComponent implements OnInit {
}); });
break; break;
case 'transactions-by-date': case 'transactions-by-date':
this.comp.Transactionlinechartreq().then(res => { this.comp.Transactionlinechartreq('','','1 week').then(res => {
this.hashdata = this.comp.feeGraphData; this.hashdata = this.comp.feeGraphData;
this.hashdata.layout.height = 300; this.hashdata.layout.height = 300;
// this.hashdata.layout.width = // this.hashdata.layout.width =