From d23be3735921ed050e6b9b17fe718fb912d20275 Mon Sep 17 00:00:00 2001 From: shunmugam Date: Thu, 17 Oct 2019 12:52:49 +0530 Subject: [PATCH] Fix tick --- src/app/view/home/graph-list/graph-list.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 090ee3e..73f3067 100644 --- a/src/app/view/home/graph-list/graph-list.component.ts +++ b/src/app/view/home/graph-list/graph-list.component.ts @@ -916,7 +916,9 @@ export class GraphListComponent implements OnInit { let dtickval; - if(DifficultychartDate.length <10) + if(DifficultychartDate.length <5) + dtickval =1*24*60*60*1000 + else if(DifficultychartDate.length <10) dtickval =2*24*60*60*1000 else if(DifficultychartDate.length <20) dtickval =4*24*60*60*1000