Open jacekn opened 6 years ago
will need to be added to the panel menu, so you can click on the panel title then toggle stack from there.
I like the ability to switch between stacked & unstacked graphs in 1 click on the Prometheus UI, it would be great to have it on Grafana also.
To (try to) improve the proposal made in the rejected PR https://github.com/grafana/grafana/pull/15885 , maybe the 'Toggle stacking' option added here could be shown/hidden based on a new parameter that would be available under Panel Edit > Visualization > Stacking & Null value like the following :
This to avoid having too much corner-cases options displayed all the time.
WDYT ?
Isn't there any way to create a template variable and use it in the stacking JSON Model?
{
"current": {
"selected": true,
"text": "Off",
"value": "normal"
},
"hide": 0,
"includeAll": false,
"label": "Stacked",
"multi": false,
"name": "stacking",
"options": [
{
"selected": true,
"text": "Off",
"value": "normal"
},
{
"selected": false,
"text": "On",
"value": "none"
}
],
"query": "Off : normal, On : none",
"queryValue": "",
"skipUrlSync": false,
"type": "custom"
}
And then:
"stacking": {
"group": "A",
"mode": "${stacking}"
},
My OCD screams every day because a colleague wants to have each row of the dashboard duplicated for stacked and non stacked data... :(
This issue has been automatically marked as stale because it has not had activity in the last year. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!
Please include this information:
Currently if I want to switch between stacked and unstacked mode for graph panel I have to edit the panel and toggle "stacked" box there. It would be useful to have stack/unstack toggle next to each panel for easy way to change mode.
Justification:
I think implementation could be similar to one for https://github.com/grafana/grafana/issues/9722