# Bar graphs in InfluxDB2?

**URL:** <https://community.influxdata.com/t/bar-graphs-in-influxdb2/21396>\
**Category:** Dashboards\
**Tags:** influxdb\
**Created:** [August 25, 2021, 10:51pm UTC](https://community.influxdata.com/t/bar-graphs-in-influxdb2/21396 "2021-08-25T22:51:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwhitfield](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jwhitfield/32/6038_2.png) [@jwhitfield](https://community.influxdata.com/u/jwhitfield)\
**Post date:** [August 25, 2021, 10:51pm UTC](https://community.influxdata.com/t/bar-graphs-in-influxdb2/21396/1 "2021-08-25T22:51:29Z")

</div>

Greetings. I’m trying to graph the counts of (traffic) reports over time.  
It was more challenging than I expected, and in case it helps anyone, this is the Flux query that works

```auto
from(bucket: "my_bucket")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["_measurement"] == "traffic")
  |> filter(fn: (r) => r["_field"] == "value")
  |> window(every: 1h)
  |> count()
  |> duplicate(column: "_stop", as: "_time")
  |> window(every: inf)
  |> yield(name: "count")

```

The results (there’s inbound and outbound) do plot ok as a line graph, but actually a bar chart (with in and out being side-by-side vertical bars) would be much better. (It’s what the customer wants!)  
Looking around the influx site, it appears that Influx 1.8’s Chronograf supported bar charts, but 2.0 doesn’t. Is this correct?

Will bar charts be available in InfluxDB2’s dashboard? When? (Sure, Histogram exists, but it’s not “the right data”. In my case, histogram divides into bins of various speed values, but my x axis should be Count, not speed-range-bins.)

Admittedly I installed Influx2 a few months ago (2.0.6), so if barcharts are already available, my apologies and I’ll update. (Bar charts are not mentioned in the documentation, so I don’t think they’re available yet)

---

<div class="post-metadata">

**Author:** ![dan-moran](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/dan-moran/32/5885_2.png) [@dan-moran](https://community.influxdata.com/u/dan-moran)\
**Post date:** [August 26, 2021, 3:06pm UTC](https://community.influxdata.com/t/bar-graphs-in-influxdb2/21396/2 "2021-08-26T15:06:41Z")

</div>

@jwhitfield you’re correct, bar charts aren’t currently supported in 2.x. There are a [few related issues](https://github.com/influxdata/giraffe/issues?q=is%3Aissue+is%3Aopen+bar+chart) open in our “giraffe” visualizations library, if you want to add your +1 to one of them.
