# DQL Bar graph width

**URL:** <https://community.dynatrace.com/t/dql-bar-graph-width/40965>\
**Category:** DQL\
**Tags:** dql, dashboards\
**Created:** [August 1, 2023, 1:48pm UTC](https://community.dynatrace.com/t/dql-bar-graph-width/40965 "2023-08-01T13:48:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![calfano](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/calfano/32/35558_2.png) [@calfano](https://community.dynatrace.com/u/calfano)\
**Post date:** [August 1, 2023, 1:48pm UTC](https://community.dynatrace.com/t/dql-bar-graph-width/40965/1 "2023-08-01T13:48:19Z")

</div>

Using DQL I have the following query for Davis problems:

```markup
fetch events
| filter event.kind == "DAVIS_PROBLEM"
| filter matchesValue(entity_tags, $environment)
| summarize problem_count = count(), by: {`15m interval` = bin(timestamp, 15m)}

```

which we can display with the following visualization:

 ![calfano_0-1690897618125.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/d/6d92e68de54151553724ee14358335d8f5a96706.png)

Is there a way to make the width of the bar take up the “bin” interval so that I have no gaps between data points?

Thank you!

---

<div class="post-metadata">

**Author:** ![Fin\_Ubels](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fin_ubels/32/18008_2.png) [@Fin\_Ubels](https://community.dynatrace.com/u/Fin_Ubels)\
**Post date:** [August 1, 2023, 11:15pm UTC](https://community.dynatrace.com/t/dql-bar-graph-width/40965/2 "2023-08-01T23:15:18Z")

</div>

Hey Calfano,

You can widen the bars by changing the timestamp field to a timeframe field. Currently the bars only represent a sliver of time even though the count is for more than that. In my first example I make them take up the whole minute slot but you can also change it to be half width or whatever width you want by messing with the length of the timeframe as seen in the second and third examples.

 ![Fin_Ubels_0-1690931447037.png](https://global.discourse-cdn.com/dynatrace/original/2X/c/c4fd77b774153a3a06ec476de8f23ada9515d337.png)

 ![Fin_Ubels_1-1690931528795.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/7/a7a52e2bf0f1f6025c478ddb6f1b74ec20520f28.png)

 ![Fin_Ubels_3-1690931580890.png](https://global.discourse-cdn.com/dynatrace/original/2X/3/322ef0bbbb88a577be0c81a312d1b20bfca73d14.png)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![calfano](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/calfano/32/35558_2.png) [@calfano](https://community.dynatrace.com/u/calfano)\
**Post date:** [August 2, 2023, 1:11am UTC](https://community.dynatrace.com/t/dql-bar-graph-width/40965/3 "2023-08-02T01:11:25Z")

</div>

That works! Thank you so much.
