# Bar graph with two fields sharing the same date histogram?

**URL:** <https://discuss.elastic.co/t/bar-graph-with-two-fields-sharing-the-same-date-histogram/177974>\
**Category:** Kibana\
**Created:** [April 23, 2019, 7:52am UTC](https://discuss.elastic.co/t/bar-graph-with-two-fields-sharing-the-same-date-histogram/177974 "2019-04-23T07:52:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [April 23, 2019, 7:52am UTC](https://discuss.elastic.co/t/bar-graph-with-two-fields-sharing-the-same-date-histogram/177974/1 "2019-04-23T07:52:08Z")

</div>

Hi,

I'm indexing my support tickets and got two fields called `issues.createdon` and `issues.closedon`. I want to create a graph that shows two bars per day with the count of each field so I can quickly see the amount of tickets opened and closed on a single day.

When selecting count and data histogram this works fine with only one field. But adding a second field by splitting the table created very thing hard to read lines.

This must be super simply but for some reason I'm unable to create a nice looking graph.

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [April 23, 2019, 11:09pm UTC](https://discuss.elastic.co/t/bar-graph-with-two-fields-sharing-the-same-date-histogram/177974/2 "2019-04-23T23:09:55Z")

</div>

I would use a filters aggregation for the split series and then change the bar chart mode from "stacked" to "normal".

 ![56%20PM](https://us1.discourse-cdn.com/elastic/original/3X/b/9/b94f0e43762620858c66a715cf1397998da5ce5f.png)

 ![41%20PM](https://us1.discourse-cdn.com/elastic/original/3X/2/5/2582de7e4b4920e8c72b903f871ddb733b6e392d.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 21, 2019, 11:24pm UTC](https://discuss.elastic.co/t/bar-graph-with-two-fields-sharing-the-same-date-histogram/177974/3 "2019-05-21T23:24:57Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
