From bfe5bd438e9eead90cb92ab5e1b63933387fbfee Mon Sep 17 00:00:00 2001 From: shunmugam Date: Thu, 12 Sep 2019 18:59:25 +0530 Subject: [PATCH] test commit --- .../view/graph-view/graph-detail/graph-detail.component.ts | 3 +++ src/app/view/home/graph-list/graph-list.component.ts | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/view/graph-view/graph-detail/graph-detail.component.ts b/src/app/view/graph-view/graph-detail/graph-detail.component.ts index 88ca5a6..ce3ab57 100644 --- a/src/app/view/graph-view/graph-detail/graph-detail.component.ts +++ b/src/app/view/graph-view/graph-detail/graph-detail.component.ts @@ -252,6 +252,9 @@ export class GraphDetailComponent implements OnInit { this.hashdata = this.comp.linearTotalGraphData; this.hashdata.layout.height = 300; this.hashdata.layout.xaxis.domain = [0.1,0.9]; + this.hashdata.layout.yaxis.automargin= true; + this.hashdata.layout.yaxis1.automargin= true; + this.hashdata.layout.yaxis2.automargin= true; this.hashdata.layout.yaxis2.position = 2.25; this.title = 'Total Difficulty'; }); diff --git a/src/app/view/home/graph-list/graph-list.component.ts b/src/app/view/home/graph-list/graph-list.component.ts index 149c0e3..cd54846 100644 --- a/src/app/view/home/graph-list/graph-list.component.ts +++ b/src/app/view/home/graph-list/graph-list.component.ts @@ -1331,6 +1331,7 @@ export class GraphListComponent implements OnInit { title: 'Cuckoo', fixedrange: true, rangemode: 'nonnegative', + automargin: true, // showgrid: true, range: range1, }, @@ -1339,14 +1340,16 @@ export class GraphListComponent implements OnInit { fixedrange: true, // showgrid: true, range: range3, + automargin: true, // overlaying: 'y', rangemode: 'nonnegative', side: 'right', - position: 1.25 + // position: 1.25 }, yaxis3: { title: 'RandomX', fixedrange: true, + automargin: true, // showgrid: true, range: range2, rangemode: 'nonnegative',