Skip to content

Commit

Permalink
Change car id selector by row on Charge Details dashboard (#3844)
Browse files Browse the repository at this point in the history
* Add row instead of selector

* Update screenshot

* Add Car label

* Update line colors
  • Loading branch information
jheredianet committed Apr 16, 2024
1 parent 425ffee commit a557f3b
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 34 deletions.
87 changes: 53 additions & 34 deletions grafana/dashboards/internal/drive-details.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,19 @@
],
"liveNow": false,
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 40,
"panels": [],
"title": "Car: $car_id",
"type": "row"
},
{
"datasource": {
"type": "grafana-postgresql-datasource",
Expand Down Expand Up @@ -460,14 +473,29 @@
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "Range (rated)"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "semi-dark-purple",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 12,
"w": 12,
"x": 0,
"y": 0
"y": 1
},
"id": 39,
"options": {
Expand Down Expand Up @@ -578,7 +606,7 @@
"h": 12,
"w": 12,
"x": 12,
"y": 0
"y": 1
},
"id": 4,
"maxDataPoints": 50000,
Expand Down Expand Up @@ -861,7 +889,7 @@
"h": 12,
"w": 12,
"x": 0,
"y": 12
"y": 13
},
"id": 8,
"options": {
Expand Down Expand Up @@ -1131,7 +1159,7 @@
"h": 6,
"w": 12,
"x": 12,
"y": 12
"y": 13
},
"id": 6,
"options": {
Expand Down Expand Up @@ -1380,7 +1408,7 @@
"h": 6,
"w": 12,
"x": 12,
"y": 18
"y": 19
},
"id": 32,
"options": {
Expand Down Expand Up @@ -1443,7 +1471,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 24
"y": 25
},
"id": 36,
"panels": [],
Expand Down Expand Up @@ -1474,8 +1502,7 @@
"mode": "absolute",
"steps": [
{
"color": "super-light-blue",
"value": null
"color": "super-light-blue"
}
]
},
Expand All @@ -1487,7 +1514,7 @@
"h": 3,
"w": 6,
"x": 0,
"y": 25
"y": 26
},
"id": 38,
"maxDataPoints": 100,
Expand Down Expand Up @@ -1587,8 +1614,7 @@
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
"color": "text"
}
]
},
Expand All @@ -1600,7 +1626,7 @@
"h": 3,
"w": 3,
"x": 6,
"y": 25
"y": 26
},
"id": 14,
"maxDataPoints": 100,
Expand Down Expand Up @@ -1675,8 +1701,7 @@
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
"color": "text"
}
]
},
Expand All @@ -1688,7 +1713,7 @@
"h": 3,
"w": 3,
"x": 9,
"y": 25
"y": 26
},
"id": 34,
"options": {
Expand Down Expand Up @@ -1782,8 +1807,7 @@
"mode": "absolute",
"steps": [
{
"color": "super-light-green",
"value": null
"color": "super-light-green"
}
]
}
Expand Down Expand Up @@ -1811,7 +1835,7 @@
"h": 9,
"w": 12,
"x": 12,
"y": 25
"y": 26
},
"id": 35,
"options": {
Expand Down Expand Up @@ -1932,8 +1956,7 @@
"mode": "absolute",
"steps": [
{
"color": "semi-dark-green",
"value": null
"color": "semi-dark-green"
}
]
},
Expand Down Expand Up @@ -1970,7 +1993,7 @@
"h": 3,
"w": 6,
"x": 0,
"y": 28
"y": 29
},
"id": 10,
"maxDataPoints": 100,
Expand Down Expand Up @@ -2043,8 +2066,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
}
Expand All @@ -2055,7 +2077,7 @@
"h": 3,
"w": 6,
"x": 6,
"y": 28
"y": 29
},
"id": 20,
"options": {
Expand Down Expand Up @@ -2205,8 +2227,7 @@
"mode": "absolute",
"steps": [
{
"color": "light-yellow",
"value": null
"color": "light-yellow"
}
]
},
Expand All @@ -2218,7 +2239,7 @@
"h": 3,
"w": 6,
"x": 0,
"y": 31
"y": 32
},
"id": 12,
"maxDataPoints": 100,
Expand Down Expand Up @@ -2292,8 +2313,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "yellow",
Expand Down Expand Up @@ -2338,7 +2358,7 @@
"h": 3,
"w": 3,
"x": 6,
"y": 31
"y": 32
},
"id": 18,
"options": {
Expand Down Expand Up @@ -2431,8 +2451,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
}
Expand Down Expand Up @@ -2468,7 +2487,7 @@
"h": 3,
"w": 3,
"x": 9,
"y": 31
"y": 32
},
"id": 37,
"options": {
Expand Down Expand Up @@ -2748,6 +2767,6 @@
"timezone": "",
"title": "Drive Details",
"uid": "zm7wN6Zgz",
"version": 3,
"version": 4,
"weekStart": ""
}
Binary file modified website/static/screenshots/drive.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a557f3b

Please sign in to comment.