From 220e4c416a42b3cc7f0b7b8b12895611ce2cb754 Mon Sep 17 00:00:00 2001
From: root <rajasingh.blaze@gmail.com>
Date: Wed, 21 Aug 2019 16:28:34 +0530
Subject: [PATCH] Overlap text fixed

---
 src/app/view/home/graph-list/graph-list.component.ts | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

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 21389e5..e0aa8ea 100644
--- a/src/app/view/home/graph-list/graph-list.component.ts
+++ b/src/app/view/home/graph-list/graph-list.component.ts
@@ -366,8 +366,12 @@ export class GraphListComponent implements OnInit {
               //let today_date_index = gDate.indexOf('2019-08-06');
               //this.gg_last = gReward[today_date_index];
               this.gg_last = "16";
+              let range = [];
+              if(gaddedreward.length == 1 && gaddedreward[0]!= 0){
+                range = [ (gaddedreward[0] - (gaddedreward[0] * 0.3)), (gaddedreward[0] + (gaddedreward[0] * 0.3)) ];
+              }
               //this.gg_last = gReward[gReward.length - 1];
-              this.growthFunc(gDate, gReward, gaddedreward);
+              this.growthFunc(gDate, gReward, gaddedreward, range);
               resolve();
             }
           },
@@ -918,7 +922,7 @@ export class GraphListComponent implements OnInit {
     };
   }
 
-  growthFunc(gDate, gReward, gaddedreward) {
+  growthFunc(gDate, gReward, gaddedreward, range) {
     this.growthGraphData = {
       data: [
         {
@@ -954,6 +958,7 @@ export class GraphListComponent implements OnInit {
           rangemode: 'nonnegative',
           fixedrange: true,
           showgrid: true,
+          range : range,
           //tickformat :".0f",
           tickprefix: '                '
         },