# How to create bar chart with time intervals x axis in kibana?

**URL:** https://discuss.elastic.co/t/how-to-create-bar-chart-with-time-intervals-x-axis-in-kibana/257359
**Category:** Kibana
**Created:** [December 2, 2020, 1:24pm UTC](https://discuss.elastic.co/t/how-to-create-bar-chart-with-time-intervals-x-axis-in-kibana/257359 "2020-12-02T13:24:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Cristiane\_Marcarini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cristiane_marcarini/32/79393_2.png) [@Cristiane\_Marcarini](https://discuss.elastic.co/u/Cristiane_Marcarini)
#### Post date: [December 2, 2020, 1:24pm UTC](https://discuss.elastic.co/t/how-to-create-bar-chart-with-time-intervals-x-axis-in-kibana/257359/1 "2020-12-02T13:24:09Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/5/0/509deaa7d3763202e50a17d1ab2fbe9219368491.png)

how to create bar chart with time intervals x axis in kibana? Can be with JSON or grok.

---

<div class="post-metadata">

### Author: ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)
#### Post date: [December 2, 2020, 9:52pm UTC](https://discuss.elastic.co/t/how-to-create-bar-chart-with-time-intervals-x-axis-in-kibana/257359/2 "2020-12-02T21:52:08Z")

</div>

It depends on the way you've stored the data, but this looks like a standard Kibana aggregated bar chart. You can use the Histogram aggregation on the X axis. Did you try this? If this isn't working for you, then there might be something non-standard you are doing, and we would need more details.

---

<div class="post-metadata">

### Author: ![Cristiane\_Marcarini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cristiane_marcarini/32/79393_2.png) [@Cristiane\_Marcarini](https://discuss.elastic.co/u/Cristiane_Marcarini)
#### Post date: [December 3, 2020, 6:08pm UTC](https://discuss.elastic.co/t/how-to-create-bar-chart-with-time-intervals-x-axis-in-kibana/257359/3 "2020-12-03T18:08:24Z")

</div>

I haven't tried anything yet, as I don't even know where to start. The data I have are quantities, days, nothing aggregated. Can you teach me?

---

<div class="post-metadata">

### Author: ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)
#### Post date: [December 3, 2020, 6:15pm UTC](https://discuss.elastic.co/t/how-to-create-bar-chart-with-time-intervals-x-axis-in-kibana/257359/4 "2020-12-03T18:15:57Z")

</div>

Okay, I can point you to documentation and educational resources that we offer. You should create visualizations [to add to a Kibana dashboard](https://www.elastic.co/guide/en/kibana/current/dashboard.html)- we generally recommend using Lens for most visualizations, as it is the simplest tool we have.

We also offer a [Kibana webinar](https://www.elastic.co/webinars/getting-started-kibana) and [free and paid training options](https://www.elastic.co/training/).

---

<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: [December 31, 2020, 6:16pm UTC](https://discuss.elastic.co/t/how-to-create-bar-chart-with-time-intervals-x-axis-in-kibana/257359/5 "2020-12-31T18:16:08Z")

</div>

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