From 616ab5c424a87f6785abb0b7453e4ca49255c40f Mon Sep 17 00:00:00 2001 From: Darshan Nagesh <darshan.nagesh@tarento.com> Date: Mon, 28 Mar 2022 13:31:27 +0530 Subject: [PATCH] Cumulative Visualization has been added --- .../resources/schema/SMF_ChartApiConfig.json | 30 +++++++++++++++++++ .../schema/SMF_MasterDashboardConfig.json | 22 ++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/src/main/resources/schema/SMF_ChartApiConfig.json b/src/main/resources/schema/SMF_ChartApiConfig.json index 1721d1a..e271caa 100644 --- a/src/main/resources/schema/SMF_ChartApiConfig.json +++ b/src/main/resources/schema/SMF_ChartApiConfig.json @@ -143,5 +143,35 @@ "alwaysView": "", "insight": {}, "_comment": " " + }, + "applicationSubmittedVsInspected": { + "chartName": "Applications Submitted Vs Inspected", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\r\n \"ts\" : \"timestamp\"}", + "dateRefField": "timestamp", + "indexName": "fs-forms-data", + "esInstance": "QUADNARY", + "aggrQuery": "{\"aggs\":{\"Application Submission Trend\":{\"date_histogram\":{\"field\":\"timestamp\",\"interval\":\"week\"},\"aggs\":{\"count\":{\"cardinality\":{\"field\":\"_id\"}}}},\"Application Inspection Trend\":{\"date_histogram\":{\"field\":\"inspection.inspectionCompletedDate\",\"interval\":\"week\"},\"aggs\":{\"count\":{\"cardinality\":{\"field\":\"_id\"}}}}}}" + } + ], + "chartType": "line", + "resultType": "doc_count", + "valueType": "number", + "isDecimal": true, + "action": "", + "filter": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "Application Submission Trend", + "Application Inspection Trend" + ], + "isCumulative": true, + "interval": "day", + "alwaysView": "", + "insight": {}, + "_comment": " " } } \ No newline at end of file diff --git a/src/main/resources/schema/SMF_MasterDashboardConfig.json b/src/main/resources/schema/SMF_MasterDashboardConfig.json index 4136b6e..7f96693 100644 --- a/src/main/resources/schema/SMF_MasterDashboardConfig.json +++ b/src/main/resources/schema/SMF_MasterDashboardConfig.json @@ -128,6 +128,28 @@ "headers": [] } ] + }, + { + "id": 111, + "name": "Applications Submitted vs Inspected", + "description": "Gives a contrast of submitted applications and inspected application in a cumulative view", + "dimensions": { + "height": 250, + "width": 4 + }, + "vizType": "chart", + "noUnit": true, + "isCollapsible": false, + "charts": [ + { + "id": "applicationSubmittedVsInspected", + "name": "Applications Submitted vs Inspected", + "code": "", + "chartType": "line", + "filter": "", + "headers": [] + } + ] } ] } -- GitLab