diff --git a/src/main/resources/schema/SMF_ChartApiConfig.json b/src/main/resources/schema/SMF_ChartApiConfig.json index 1721d1a3dde0047c6a5f1ae1e8140d69008e30f7..e271caa75924cc5c3ee4528b46b44c38a182ad4e 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 4136b6e7d04a0a921d9a51dbe2658fede04e304a..7f96693a3a28ef2a498e81acf0988f0f6b410bf1 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": [] + } + ] } ] }