Multiple axis ui issue fixed

This commit is contained in:
SuriyaR 2019-08-13 19:24:35 +05:30
parent 15dcd6b30d
commit a08290763d
2 changed files with 12 additions and 2 deletions

View File

@ -60,6 +60,8 @@ export class GraphDetailComponent implements OnInit {
this.hashdata = this.comp.linearTotalGraphData; this.hashdata = this.comp.linearTotalGraphData;
console.log('this.comp.linearTotalGraphData',this.comp.linearTotalGraphData); console.log('this.comp.linearTotalGraphData',this.comp.linearTotalGraphData);
this.hashdata.layout.height = 300; this.hashdata.layout.height = 300;
this.hashdata.layout.xaxis.domain = [0.1,0.9];
this.hashdata.layout.yaxis2.position = 2.25;
this.title = 'Total Difficulty'; this.title = 'Total Difficulty';
this.selectedItem = 6; this.selectedItem = 6;
this.titleService.setTitle( this.titleService.setTitle(
@ -74,6 +76,8 @@ export class GraphDetailComponent implements OnInit {
this.hashdata = this.comp.linearGraphData; this.hashdata = this.comp.linearGraphData;
console.log('this.comp.linearGraphData',this.comp.linearGraphData); console.log('this.comp.linearGraphData',this.comp.linearGraphData);
this.hashdata.layout.height = 300; this.hashdata.layout.height = 300;
this.hashdata.layout.xaxis.domain = [0.1,0.9];
this.hashdata.layout.yaxis2.position = 2.25;
this.title = 'Target Difficulty'; this.title = 'Target Difficulty';
this.selectedItem = 6; this.selectedItem = 6;
this.titleService.setTitle( this.titleService.setTitle(
@ -222,6 +226,8 @@ export class GraphDetailComponent implements OnInit {
this.comp.Difficultyreq('target',p1, p2, p3, p4).then(res => { this.comp.Difficultyreq('target',p1, p2, p3, p4).then(res => {
this.hashdata = this.comp.linearGraphData; this.hashdata = this.comp.linearGraphData;
this.hashdata.layout.height = 300; this.hashdata.layout.height = 300;
this.hashdata.layout.xaxis.domain = [0.1,0.9];
this.hashdata.layout.yaxis2.position = 2.25;
this.title = 'Target Difficulty'; this.title = 'Target Difficulty';
}); });
break; break;
@ -229,6 +235,8 @@ export class GraphDetailComponent implements OnInit {
this.comp.Difficultyreq('total',p1, p2, p3, p4).then(res => { this.comp.Difficultyreq('total',p1, p2, p3, p4).then(res => {
this.hashdata = this.comp.linearTotalGraphData; this.hashdata = this.comp.linearTotalGraphData;
this.hashdata.layout.height = 300; this.hashdata.layout.height = 300;
this.hashdata.layout.xaxis.domain = [0.1,0.9];
this.hashdata.layout.yaxis2.position = 2.25;
this.title = 'Total Difficulty'; this.title = 'Total Difficulty';
}); });
break; break;

View File

@ -533,6 +533,7 @@ export class GraphListComponent implements OnInit {
tickangle: -45, tickangle: -45,
tickformat: tickformat, tickformat: tickformat,
fixedrange: true, fixedrange: true,
domain: [0.2, 0.8]
// showgrid: true // showgrid: true
}, },
yaxis: { yaxis: {
@ -548,7 +549,7 @@ export class GraphListComponent implements OnInit {
// range: range, // range: range,
overlaying: 'y', overlaying: 'y',
side: 'left', side: 'left',
position: 0.25 position: 1.25
}, },
yaxis3: { yaxis3: {
title: 'RandomX', title: 'RandomX',
@ -1138,6 +1139,7 @@ export class GraphListComponent implements OnInit {
tickangle: -45, tickangle: -45,
tickformat: tickformat, tickformat: tickformat,
fixedrange: true, fixedrange: true,
domain: [0.2, 0.8]
// showgrid: true // showgrid: true
}, },
yaxis: { yaxis: {
@ -1153,7 +1155,7 @@ export class GraphListComponent implements OnInit {
// range: range, // range: range,
overlaying: 'y', overlaying: 'y',
side: 'left', side: 'left',
position: 0.25 position: 1.25
}, },
yaxis3: { yaxis3: {
title: 'RandomX', title: 'RandomX',