Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

"Group by" not working #18

Open
alxhld opened this issue Sep 16, 2022 · 0 comments
Open

"Group by" not working #18

alxhld opened this issue Sep 16, 2022 · 0 comments

Comments

@alxhld
Copy link

alxhld commented Sep 16, 2022

Hi,

Thanks for gravo!
I have an issue with the "group by" feature of the "additional JSON data". I receive data via the JSON interface and gravo, however, adding group into payload shows no effect. What can I do?

Thanks,
Alex

Bildschirmfoto 2022-09-16 um 21 53 39

{
"id": 43,
"gridPos": {
"h": 5,
"w": 9,
"x": 1,
"y": 31
},
"type": "barchart",
"title": "Gas",
"transformations": [],
"fieldConfig": {
"defaults": {
"custom": {
"lineWidth": 1,
"fillOpacity": 80,
"gradientMode": "none",
"axisPlacement": "auto",
"axisLabel": "",
"axisSoftMin": 0,
"scaleDistribution": {
"type": "linear"
},
"hideFrom": {
"tooltip": false,
"viz": false,
"legend": false
}
},
"color": {
"mode": "palette-classic"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Gas"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "semi-dark-red",
"mode": "fixed"
}
}
]
}
]
},
"options": {
"orientation": "auto",
"xTickLabelRotation": 0,
"xTickLabelSpacing": 0,
"showValue": "auto",
"stacking": "none",
"groupWidth": 0.7,
"barWidth": 0.97,
"barRadius": 0,
"tooltip": {
"mode": "single",
"sort": "none"
},
"legend": {
"displayMode": "list",
"placement": "bottom",
"calcs": []
}
},
"targets": [
{
"refId": "A",
"datasource": {
"uid": "ATkk_xL7z",
"type": "simpod-json-datasource"
},
"payload": "{"group": "month"}\n",
"target": "afbccd40-83a0-11e4-9c8b-d17b1eb50ba9",
"hide": false
}
],
"datasource": null
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant