Hi @mattabrams,
thanks for the reply.
{
"id": 23763571993,
"gridPos": {
"h": 26,
"w": 6,
"x": 12,
"y": 21
},
"type": "stat",
"title": "🔋 Bank 1",
"transformations": [
{
"id": "renameByRegex",
"options": {
"regex": "b1c(\\d+) .*",
"renamePattern": "$1"
}
}
],
"datasource": "${DB}",
"pluginVersion": "8.1.2",
"maxDataPoints": 50,
"interval": "60s",
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red",
"value": null
},
{
"color": "light-orange",
"value": 3.5
},
{
"color": "green",
"value": 3.8
},
{
"color": "red",
"value": 4.2
}
]
},
"mappings": [],
"color": {
"mode": "thresholds"
},
"decimals": 2,
"max": 4.3,
"min": 3.3,
"unit": "volt"
},
"overrides": []
},
"options": {
"reduceOptions": {
"values": false,
"calcs": [],
"fields": ""
},
"orientation": "horizontal",
"text": {},
"textMode": "name",
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto"
},
"targets": [
{
"query": "from(bucket: \"BMS\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"uid\"] == \"${UID}\")\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"BMS\")\r\n |> filter(fn: (r) => r[\"_field\"] =~ /b1c.*/)\r\n |> sort(columns: [\"_time\"], desc: true)\r\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\r\n |> yield(name: \"mean\")",
"rawQuery": true,
"refId": "1"
}
],
"description": "",
"timeFrom": null,
"timeShift": null
}
Currently it looks like this:
I’d like them to be in this order instead:
InfluxDB: