# Bars devided incorrectly

**URL:** <https://community.grafana.com/t/bars-devided-incorrectly/82337>\
**Category:** Bar Chart Panel\
**Tags:** datasource, prometheus\
**Created:** [February 22, 2023, 3:19pm UTC](https://community.grafana.com/t/bars-devided-incorrectly/82337 "2023-02-22T15:19:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hatred](https://avatars.discourse-cdn.com/v4/letter/h/7993a0/32.png) [@hatred](https://community.grafana.com/u/hatred)\
**Post date:** [February 22, 2023, 3:19pm UTC](https://community.grafana.com/t/bars-devided-incorrectly/82337/1 "2023-02-22T15:19:02Z")

</div>

I have such a problem - at the beginning of the month and at the end of the bars are separated, although they were originally intended to be combined with two queries. It turns out that at the beginning of the month I get 1 bar from one request, and at the end of the month - 1 bar from another request. How can they be aligned so that they are output as a pair, as inside the range?

 ![Grafana_panel1](https://us1.discourse-cdn.com/grafana/original/3X/f/0/f00e62ceaa9466374d181e9668212a17fde59e07.png)

```auto
{
  "id": 611,
  "gridPos": {
    "h": 6,
    "w": 12,
    "x": 1,
    "y": 32
  },
  "type": "barchart",
  "title": "Total revenue",
  "datasource": {
    "type": "prometheus",
    "uid": "2qDdy95nk"
  },
  "pluginVersion": "9.3.6",
  "timeFrom": "30d",
  "maxDataPoints": 100,
  "interval": "1d",
  "links": [],
  "description": "",
  "fieldConfig": {
    "defaults": {
      "custom": {
        "lineWidth": 1,
        "fillOpacity": 74,
        "gradientMode": "none",
        "axisPlacement": "auto",
        "axisLabel": "",
        "axisColorMode": "text",
        "scaleDistribution": {
          "type": "linear"
        },
        "axisCenteredZero": false,
        "hideFrom": {
          "tooltip": false,
          "viz": false,
          "legend": false
        },
        "thresholdsStyle": {
          "mode": "off"
        }
      },
      "color": {
        "mode": "continuous-BlYlRd",
        "fixedColor": "dark-yellow"
      },
      "mappings": [
        {
          "options": {
            "match": "null",
            "result": {
              "text": "N/A"
            }
          },
          "type": "special"
        }
      ],
      "thresholds": {
        "mode": "absolute",
        "steps": [
          {
            "color": "dark-blue",
            "value": null
          }
        ]
      },
      "decimals": 2,
      "min": 0,
      "unit": "currencyUSD"
    },
    "overrides": []
  },
  "options": {
    "orientation": "vertical",
    "xTickLabelRotation": 0,
    "xTickLabelSpacing": 100,
    "showValue": "auto",
    "stacking": "none",
    "groupWidth": 1,
    "barWidth": 0.71,
    "barRadius": 0.1,
    "tooltip": {
      "mode": "single",
      "sort": "none"
    },
    "legend": {
      "showLegend": false,
      "displayMode": "list",
      "placement": "bottom",
      "calcs": []
    },
    "xField": "Time"
  },
  "targets": [
    {
      "datasource": {
        "type": "prometheus",
        "uid": "2qDdy95nk"
      },
      "editorMode": "builder",
      "expr": "sum(delta(storj_payout_currentMonth{type=~\"payout\"}[24h]) / 100)",
      "interval": "",
      "legendFormat": "Aquired",
      "range": true,
      "refId": "A"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "2qDdy95nk"
      },
      "editorMode": "builder",
      "expr": "sum(delta(storj_payout_currentMonth{type=~\"held\"}[24h])) / 100",
      "hide": false,
      "interval": "",
      "legendFormat": "Held",
      "range": true,
      "refId": "B"
    }
  ]
}

```

---

<div class="post-metadata">

**Author:** ![usman.ahmad](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/usman.ahmad/32/29706_2.png) [@usman.ahmad](https://community.grafana.com/u/usman.ahmad)\
**Post date:** [April 4, 2023, 9:40am UTC](https://community.grafana.com/t/bars-devided-incorrectly/82337/2 "2023-04-04T09:40:58Z")

</div>

Hi @hatred,

Welcome to the :grafana: community support forums !!

We are excited that you joined our OSS community. Please read about some of the [FAQs](https://community.grafana.com/faq) in the community 🙂

Can you please try to reproduce this same issue on [https://play.grafana.org/](https://play.grafana.org/) and then share the dashboard link so that we can view it?

Thanks

---

<div class="post-metadata">

**Author:** ![usman.ahmad](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/usman.ahmad/32/29706_2.png) [@usman.ahmad](https://community.grafana.com/u/usman.ahmad)\
**Post date:** [April 4, 2023, 10:42am UTC](https://community.grafana.com/t/bars-devided-incorrectly/82337/3 "2023-04-04T10:42:08Z")

</div>

Also, try to set the Min to 0 as described in this [post](https://community.grafana.com/t/time-series-bars-are-out-of-proportion/80613/3) and it might solve the problem.
