Jumping Time Series

  • What Grafana version and what operating system are you using?
    I use version 10.1.2

  • What happened?
    I have a dashboard with standard time period of 12 hours.
    One of the time series has a time period of 30 days. in the overview this chart is “jumping” behind a 12 hour and a 31 day view.

  • What did you expect to happen?
    a stable view of 31 days

I have recorded a short video: https://photos.app.goo.gl/Sb2PnrQNfUU2kWfz8

  • Can you copy/paste the configuration(s) that you are having problems with?
{
  "datasource": {
    "uid": "da051519-7487-4eba-89ab-eac8d99f0b0b",
    "type": "influxdb"
  },
  "fieldConfig": {
    "defaults": {
      "custom": {
        "drawStyle": "line",
        "lineInterpolation": "linear",
        "barAlignment": 0,
        "lineWidth": 1,
        "fillOpacity": 20,
        "gradientMode": "hue",
        "spanNulls": false,
        "insertNulls": false,
        "showPoints": "auto",
        "pointSize": 6,
        "stacking": {
          "mode": "none",
          "group": "A"
        },
        "axisPlacement": "auto",
        "axisLabel": "",
        "axisColorMode": "text",
        "scaleDistribution": {
          "type": "linear"
        },
        "axisCenteredZero": false,
        "hideFrom": {
          "tooltip": false,
          "viz": false,
          "legend": false
        },
        "thresholdsStyle": {
          "mode": "off"
        }
      },
      "color": {
        "mode": "palette-classic"
      },
      "mappings": [],
      "thresholds": {
        "mode": "absolute",
        "steps": [
          {
            "color": "green",
            "value": null
          }
        ]
      },
      "min": 0,
      "unit": "kwatth"
    },
    "overrides": [
      {
        "matcher": {
          "id": "byName",
          "options": "mqtt.0.inverter-carport.total.YieldDay _value"
        },
        "properties": [
          {
            "id": "custom.hideFrom",
            "value": {
              "legend": true,
              "tooltip": true,
              "viz": true
            }
          }
        ]
      },
      {
        "matcher": {
          "id": "byName",
          "options": "0_userdata.0.Goodwe_berechnet.PV_Tagesleistung calc"
        },
        "properties": [
          {
            "id": "custom.hideFrom",
            "value": {
              "legend": true,
              "tooltip": true,
              "viz": true
            }
          }
        ]
      },
      {
        "matcher": {
          "id": "byName",
          "options": "0_userdata.0.Goodwe_berechnet.PV_Tagesleistung _value"
        },
        "properties": [
          {
            "id": "displayName",
            "value": "Goodwe"
          }
        ]
      },
      {
        "matcher": {
          "id": "byName",
          "options": "mqtt.0.inverter-carport.total.YieldDay calc"
        },
        "properties": [
          {
            "id": "displayName",
            "value": "Carport"
          }
        ]
      }
    ]
  },
  "gridPos": {
    "h": 8,
    "w": 8,
    "x": 0,
    "y": 27
  },
  "hideTimeOverride": true,
  "id": 20,
  "interval": "1d",
  "options": {
    "tooltip": {
      "mode": "single",
      "sort": "none"
    },
    "legend": {
      "showLegend": true,
      "displayMode": "list",
      "placement": "bottom",
      "calcs": []
    }
  },
  "targets": [
    {
      "datasource": {
        "type": "influxdb",
        "uid": "da051519-7487-4eba-89ab-eac8d99f0b0b"
      },
      "query": "from(bucket: \"grafana\")\r\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n  |> filter(fn: (r) => r[\"_measurement\"] == \"0_userdata.0.Goodwe_berechnet.PV_Tagesleistung\" or r[\"_measurement\"] == \"mqtt.0.inverter-carport.total.YieldDay\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"value\")\r\n  |> aggregateWindow(every: 1d, fn: max, createEmpty: false)\r\n  |> drop(columns: [ \"_field\", \"_start\", \"_stop\"])\r\n  |> map(fn:(r) => ({_measurement: r._measurement, _time: r._time, _value: r._value, calc: r._value/1000.0 }))\r\n  |> yield()",
      "refId": "A"
    }
  ],
  "timeFrom": "30d",
  "title": "Tagesmengen PV Erzeugung",
  "type": "timeseries",
  "maxDataPoints": null
}
  • 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?

Try edit panel json and remove that "timeFrom": "30d", from there.

If i remove “timeFrom”: “30d” i only got a graph from the last 12 hours.
I want see the last 30 days :thinking:
These are my query options.