From cdc40817a31f1bf835a072de996e29280eab4c0a Mon Sep 17 00:00:00 2001 From: shunmugam Date: Thu, 19 Sep 2019 17:47:23 +0530 Subject: [PATCH] Commit- Extra buttons in graph --- .../graph-detail/graph-detail.component.html | 2 +- .../graph-detail/graph-detail.component.ts | 3 +++ .../home/graph-list/graph-list.component.html | 22 +++++++++---------- src/assets/css/style.css | 18 ++++++++++++++- 4 files changed, 32 insertions(+), 13 deletions(-) diff --git a/src/app/view/graph-view/graph-detail/graph-detail.component.html b/src/app/view/graph-view/graph-detail/graph-detail.component.html index 5d2cb66..3e4358b 100644 --- a/src/app/view/graph-view/graph-detail/graph-detail.component.html +++ b/src/app/view/graph-view/graph-detail/graph-detail.component.html @@ -61,7 +61,7 @@
-
+
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 fb198f2..d516be2 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 @@ -20,6 +20,7 @@ export class GraphDetailComponent implements OnInit { TimeArr: any; public hashdata: any = []; public title: any; + public id:any; public chartType : any = []; public selectedItem: Number = 3; public selectedItem8: Number = 1; @@ -66,6 +67,7 @@ export class GraphDetailComponent implements OnInit { //this.hashdata.layout.xaxis.domain = [0.1,0.9]; //this.hashdata.layout.yaxis2.position = 1.25; this.title = 'Total Difficulty'; + this.id= 'total-difficulty'; this.selectedItem = 6; this.titleService.setTitle( this.route.snapshot.data.title + ' - ' + this.title, @@ -83,6 +85,7 @@ export class GraphDetailComponent implements OnInit { // this.hashdata.layout.yaxis2.position = 2.25; this.title = 'Target Difficulty'; // this.selectedItem = 6; + this.id= 'total-difficulty'; this.titleService.setTitle( this.route.snapshot.data.title + ' - ' + this.title, ); diff --git a/src/app/view/home/graph-list/graph-list.component.html b/src/app/view/home/graph-list/graph-list.component.html index 04b3843..4e6bf66 100644 --- a/src/app/view/home/graph-list/graph-list.component.html +++ b/src/app/view/home/graph-list/graph-list.component.html @@ -1,6 +1,6 @@
-
+

{{'home.TARGET_DIFFICULTY' | translate}}

-
+

Blocks by Algorithm

{{ @@ -402,7 +402,7 @@
-
+

{{'home.BLOCKSINTERVAL' | translate}}

{{ @@ -446,7 +446,7 @@
-
+

{{'home.TOTAL_DIFFICULTY' | translate}}