-
What Grafana version and what operating system are you using?
- Grafana cloud, not sure what version, but it auto-updates
-
What are you trying to achieve?
- I want to compare kills vs deaths on the same axis/scale.
-
How are you trying to achieve it?
- I’ve graphed the two series, but they both have their own axis. The deaths are usually a lot lower, but most of the time look higher than kills since the axis scale is so low.
-
What happened?
- Both series have their own axis
-
What did you expect to happen?
- I only want one axis
-
Can you copy/paste the configuration(s) that you are having problems with?
-
Panel JSON:
Summary
-
{ "id": 1, "type": "timeseries", "title": "Kills and Deaths", "gridPos": { "x": 0, "y": 0, "h": 8, "w": 12 }, "fieldConfig": { "defaults": { "custom": { "drawStyle": "line", "lineInterpolation": "linear", "barAlignment": 0, "barWidthFactor": 0.6, "lineWidth": 3, "fillOpacity": 0, "gradientMode": "none", "spanNulls": false, "insertNulls": false, "showPoints": "auto", "showValues": false, "pointSize": 5, "stacking": { "mode": "none", "group": "A" }, "axisPlacement": "auto", "axisLabel": "", "axisColorMode": "text", "axisBorderShow": false, "scaleDistribution": { "type": "linear" }, "axisCenteredZero": false, "hideFrom": { "tooltip": false, "viz": false, "legend": false }, "thresholdsStyle": { "mode": "off" }, "lineStyle": { "fill": "solid" } }, "color": { "mode": "thresholds", "fixedColor": "dark-red" }, "mappings": [ { "type": "value", "options": { "true": { "color": "green", "index": 0 }, "false": { "color": "dark-red", "index": 1 } } } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "true" }, "properties": [ { "id": "color", "value": { "mode": "fixed", "fixedColor": "dark-green" } } ] }, { "matcher": { "id": "byName", "options": "false" }, "properties": [ { "id": "color", "value": { "mode": "fixed", "fixedColor": "red" } } ] } ] }, "pluginVersion": "12.4.0-19378664917", "targets": [ { "datasource": { "type": "criblcloud-search-datasource", "uid": "ef55hyzh2al8ga" }, "query": "dataset=\"logs\" kill=* | timestats count() by kill", "refId": "A", "type": "adhoc" } ], "datasource": { "type": "criblcloud-search-datasource", "uid": "ef55hyzh2al8ga" }, "options": { "tooltip": { "mode": "single", "sort": "none", "hideZeros": false }, "legend": { "showLegend": true, "displayMode": "list", "placement": "bottom", "calcs": [] }, "timezone": [ "browser" ] } }
-
-
-
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
- No errors
-
Did you follow any online instructions? If so, what is the URL?
- I looked through many community topics where people mention the same thing. The solutions they have don’t work for me.
I have no axis overrides, hiding an axis doesn’t actually force it to use the other axis’ scale, and there doesn’t seem to be an override to completely remove an axis.
The green line is kills and the red line is deaths. As you can see, sometime the red line is above the green line, even though the actual value is a lot lower.
