# Horizontal barchart size

**URL:** <https://discuss.elastic.co/t/horizontal-barchart-size/223479>\
**Category:** Kibana\
**Created:** [March 13, 2020, 8:54am UTC](https://discuss.elastic.co/t/horizontal-barchart-size/223479 "2020-03-13T08:54:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_Louw](https://avatars.discourse-cdn.com/v4/letter/_/ee7513/32.png) [@\_Louw](https://discuss.elastic.co/u/_Louw)\
**Post date:** [March 13, 2020, 8:54am UTC](https://discuss.elastic.co/t/horizontal-barchart-size/223479/1 "2020-03-13T08:54:50Z")

</div>

When choosing a size for a horizontal stacked bar chart I ran into a problem.  
It seems it is showing my chosen size \* the buckets I have chosen. Is there some extra field I need to check to be sure to always see the same amount of bars?

![image](https://us1.discourse-cdn.com/elastic/original/3X/6/6/667217c2b9187f7776771117a81b2a5d464b0601.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/4/3443ab40764854768bdedd607598fbcd25d953eb.png)

In my current example below I need to show top ten, and always top ten, regardless of other filters, but as you see here, I have way more than 10

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/9/e95c823df388497f7e4bfd514e7e839d2af05f8b.png)

But when I filter for only 1 bucket, I get my desired 10 bars:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/e/fe26d201d383c24b1f3e8d768366c48ca5af5e26.png)

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [March 13, 2020, 12:50pm UTC](https://discuss.elastic.co/t/horizontal-barchart-size/223479/2 "2020-03-13T12:50:42Z")

</div>

The way that works is that you will get the Top 10 results for each bucket. Which can result in 10 x number of buckets if the buckets are really different between each other or it can result in just 10 bars if they buckets are very similar.  
There is no way of limiting the total number of bars currently.

---

<div class="post-metadata">

**Author:** ![\_Louw](https://avatars.discourse-cdn.com/v4/letter/_/ee7513/32.png) [@\_Louw](https://discuss.elastic.co/u/_Louw)\
**Post date:** [March 13, 2020, 1:37pm UTC](https://discuss.elastic.co/t/horizontal-barchart-size/223479/3 "2020-03-13T13:37:00Z")

</div>

Thank you for the swift answer @Marius_Dragomir! Is it something that is on the roadmap?

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [March 13, 2020, 2:39pm UTC](https://discuss.elastic.co/t/horizontal-barchart-size/223479/4 "2020-03-13T14:39:02Z")

</div>

I haven't encountered this need before. You can open an enhancement request, maybe it will be added to the roadmap, as it could be a `low hanging fruit` type of issue.

---

<div class="post-metadata">

**Author:** ![\_Louw](https://avatars.discourse-cdn.com/v4/letter/_/ee7513/32.png) [@\_Louw](https://discuss.elastic.co/u/_Louw)\
**Post date:** [March 13, 2020, 3:16pm UTC](https://discuss.elastic.co/t/horizontal-barchart-size/223479/5 "2020-03-13T15:16:22Z")

</div>

I've made one here: [https://github.com/elastic/kibana/issues/60113](https://github.com/elastic/kibana/issues/60113)

---

<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:** [April 10, 2020, 3:16pm UTC](https://discuss.elastic.co/t/horizontal-barchart-size/223479/6 "2020-04-10T15:16:36Z")

</div>

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