# Create Histogram Bucket Aggregation

**URL:** <https://discuss.elastic.co/t/create-histogram-bucket-aggregation/168462>\
**Category:** Kibana\
**Created:** [February 14, 2019, 5:34pm UTC](https://discuss.elastic.co/t/create-histogram-bucket-aggregation/168462 "2019-02-14T17:34:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mariner191](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@Mariner191](https://discuss.elastic.co/u/Mariner191)\
**Post date:** [February 14, 2019, 5:34pm UTC](https://discuss.elastic.co/t/create-histogram-bucket-aggregation/168462/1 "2019-02-14T17:34:24Z")

</div>

Request How to: Create Histogram Bucket Aggregation.  
Describes, but not How, at [https://www.youtube.com/watch?v=j-eCKDhj-Os](https://www.youtube.com/watch?v=j-eCKDhj-Os)

Thank you!

 ![Elastic_Forum_Image4_Create%20Histogram%20Bucket%20Aggregation](https://us1.discourse-cdn.com/elastic/original/3X/f/7/f75845468afea816b0691aa7b20cc9ef4163158b.jpeg)

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [February 18, 2019, 7:00pm UTC](https://discuss.elastic.co/t/create-histogram-bucket-aggregation/168462/2 "2019-02-18T19:00:02Z")

</div>

Hello,

Here is a simple example. I am creating an area chart with count in my y-axis and histogram on product base price as x-axis. I have also picked the interval size to be 15

This is the resulting chart over last 12 hours:

 ![histogram_coint](https://us1.discourse-cdn.com/elastic/original/3X/8/e/8e9aea534fc1ad0abd11b730c9c02488d23d8b30.png)

Here are elasticsearch docs explaining the histogram aggregation: [https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-histogram-aggregation.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-histogram-aggregation.html)

Thanks,  
Bhavya

---

<div class="post-metadata">

**Author:** ![Mariner191](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@Mariner191](https://discuss.elastic.co/u/Mariner191)\
**Post date:** [February 19, 2019, 6:53pm UTC](https://discuss.elastic.co/t/create-histogram-bucket-aggregation/168462/3 "2019-02-19T18:53:38Z")

</div>

Bhava,

How (on Vertical Bar/Range Aggregation), to how to Filter out “infinity” values (rightmost vertical bar)?

Thank you

 ![Elastic_Forum_Image4b2_How%20to%20map%20a%20Field%20for%20Aggregation](https://us1.discourse-cdn.com/elastic/original/3X/a/1/a156f84a1b4da8714be488bf031d3684c1a7cae5.jpeg) ,

---

<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:** [March 19, 2019, 6:53pm UTC](https://discuss.elastic.co/t/create-histogram-bucket-aggregation/168462/4 "2019-03-19T18:53:46Z")

</div>

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