diff --git a/grafana/provisioning/dashboards-json/daily_operations_dashboard.json b/grafana/provisioning/dashboards-json/daily_operations_dashboard.json index d4a935b..364a7e0 100644 --- a/grafana/provisioning/dashboards-json/daily_operations_dashboard.json +++ b/grafana/provisioning/dashboards-json/daily_operations_dashboard.json @@ -111,7 +111,7 @@ }, "fieldConfig": { "defaults": { - "unit": "lengthkm", + "unit": "none", "decimals": 1, "color": { "mode": "fixed", "fixedColor": "blue" } } @@ -133,7 +133,7 @@ "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false } }, "fieldConfig": { - "defaults": { "unit": "h", "decimals": 1, "color": { "mode": "fixed", "fixedColor": "green" } } + "defaults": { "unit": "none", "decimals": 1, "color": { "mode": "fixed", "fixedColor": "green" } } }, "targets": [ { "datasource": { "type": "postgres", "uid": "tracksolid_pg" }, @@ -154,7 +154,7 @@ }, "fieldConfig": { "defaults": { - "unit": "h", "decimals": 1, + "unit": "none", "decimals": 1, "color": { "mode": "thresholds" }, "thresholds": { "mode": "absolute", @@ -256,7 +256,7 @@ } ], "tooltip": { "mode": "details" }, - "view": { "allLayers": true, "id": "coords", "lat": -1.5, "lon": 36.5, "zoom": 6 } + "view": { "allLayers": true, "id": "coords", "lat": -2.0, "lon": 35.5, "zoom": 5, "minZoom": 5, "maxZoom": 12 } }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic-by-name" } }, @@ -335,11 +335,11 @@ "defaults": { "custom": { "align": "auto", "filterable": true } }, "overrides": [ { "matcher": { "id": "byName", "options": "km_today" }, - "properties": [{ "id": "unit", "value": "lengthkm" }, { "id": "decimals", "value": 1 }] }, + "properties": [{ "id": "unit", "value": "none" }, { "id": "decimals", "value": 1 }, { "id": "displayName", "value": "km today" }] }, { "matcher": { "id": "byName", "options": "drive_hours" }, - "properties": [{ "id": "unit", "value": "h" }, { "id": "decimals", "value": 1 }] }, + "properties": [{ "id": "unit", "value": "none" }, { "id": "decimals", "value": 1 }, { "id": "displayName", "value": "Drive h" }] }, { "matcher": { "id": "byName", "options": "idle_hours" }, - "properties": [{ "id": "unit", "value": "h" }, { "id": "decimals", "value": 1 }] }, + "properties": [{ "id": "unit", "value": "none" }, { "id": "decimals", "value": 1 }, { "id": "displayName", "value": "Idle h" }] }, { "matcher": { "id": "byName", "options": "did_not_move" }, "properties": [ { "id": "custom.cellOptions", "value": { "type": "color-background" } }, @@ -378,7 +378,7 @@ "defaults": { "custom": { "align": "auto", "filterable": true } }, "overrides": [ { "matcher": { "id": "byName", "options": "km" }, - "properties": [{ "id": "unit", "value": "lengthkm" }, { "id": "decimals", "value": 0 }] }, + "properties": [{ "id": "unit", "value": "none" }, { "id": "decimals", "value": 0 }, { "id": "displayName", "value": "km" }] }, { "matcher": { "id": "byName", "options": "speeding_per_100km" }, "properties": [ { "id": "custom.cellOptions", "value": { "type": "color-background" } }, @@ -424,8 +424,9 @@ "options": { "legend": { "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "multi" } }, "fieldConfig": { "defaults": { - "unit": "lengthkm", - "custom": { "drawStyle": "bars", "fillOpacity": 60, "lineWidth": 1 } + "unit": "none", + "decimals": 1, + "custom": { "drawStyle": "bars", "fillOpacity": 60, "lineWidth": 1, "axisLabel": "km" } } }, "targets": [