From c6263d15f4fb759348a1a67062d35b85e6c1346b Mon Sep 17 00:00:00 2001 From: monika-Dianomic Date: Mon, 14 Nov 2022 14:08:38 +0530 Subject: [PATCH 1/2] fixed issue of reading data for 1 week --- .../asset-readings/readings-graph/readings-graph.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/core/asset-readings/readings-graph/readings-graph.component.ts b/src/app/components/core/asset-readings/readings-graph/readings-graph.component.ts index d8ed67fab..2a2940443 100644 --- a/src/app/components/core/asset-readings/readings-graph/readings-graph.component.ts +++ b/src/app/components/core/asset-readings/readings-graph/readings-graph.component.ts @@ -621,7 +621,7 @@ export class ReadingsGraphComponent implements OnDestroy { distribution: 'linear', type: 'time', time: { - unit: 'second', + unit: this.optedTime !== 604800 ? 'second' : '', tooltipFormat: 'YYYY-MM-DD HH:mm:ss.SSS', displayFormats: { unit: 'second', From f2bc63cb111d17d96fe1a1ce25eef77054e263a6 Mon Sep 17 00:00:00 2001 From: monika-Dianomic Date: Mon, 14 Nov 2022 14:36:17 +0530 Subject: [PATCH 2/2] removed unit to fix the issue --- .../asset-readings/readings-graph/readings-graph.component.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/app/components/core/asset-readings/readings-graph/readings-graph.component.ts b/src/app/components/core/asset-readings/readings-graph/readings-graph.component.ts index 2a2940443..35095b70d 100644 --- a/src/app/components/core/asset-readings/readings-graph/readings-graph.component.ts +++ b/src/app/components/core/asset-readings/readings-graph/readings-graph.component.ts @@ -621,7 +621,6 @@ export class ReadingsGraphComponent implements OnDestroy { distribution: 'linear', type: 'time', time: { - unit: this.optedTime !== 604800 ? 'second' : '', tooltipFormat: 'YYYY-MM-DD HH:mm:ss.SSS', displayFormats: { unit: 'second',