# Bar chart ordering Kibana Lens

**URL:** https://discuss.elastic.co/t/bar-chart-ordering-kibana-lens/306758
**Category:** Kibana
**Created:** [June 9, 2022, 6:15am UTC](https://discuss.elastic.co/t/bar-chart-ordering-kibana-lens/306758 "2022-06-09T06:15:07Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![behappy\_alwayz0401](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/behappy_alwayz0401/32/105988_2.png) [@behappy\_alwayz0401](https://discuss.elastic.co/u/behappy_alwayz0401)
#### Post date: [June 9, 2022, 6:15am UTC](https://discuss.elastic.co/t/bar-chart-ordering-kibana-lens/306758/1 "2022-06-09T06:15:07Z")

</div>

Hi,  
I have a horizontal bar chart in Kibana lens which has $ value on the horizontal axis, top 3 products on the vertical axis and "group other values by other" turned off, and breakdown by manager names with top 3 managers and "group other values by other" turned on.  
When the "group other values by other" is turned on, Kibana sorts this graph descending by $ and shows the correct order as can be seen here.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/e/3ec5292d12b21822a0331e7c7b4beb634ba69334.png)

However, if the "group other values by other" is turned off, the graph sorting is not in order of $ as can be seen here.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/6/66ebf15a32c231a68bf88832b9ae657f67ec587c.png)

how may this be solved? thanks..

---

<div class="post-metadata">

### Author: ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)
#### Post date: [June 10, 2022, 12:43am UTC](https://discuss.elastic.co/t/bar-chart-ordering-kibana-lens/306758/2 "2022-06-10T00:43:46Z")

</div>

I think that's the specification.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/7/777d8f3878c2b2b2a03f1914101f2495f158e579.png)

Setting for vertical axis says "Rank by Count of records". It may not be affected by break down.

Break down without "Group other values as Other" just hide the "other" bucket and the sort on vertical axis does not change. That's the more natural behavior for me.

---

<div class="post-metadata">

### Author: ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)
#### Post date: [June 10, 2022, 12:48am UTC](https://discuss.elastic.co/t/bar-chart-ordering-kibana-lens/306758/3 "2022-06-10T00:48:38Z")

</div>

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

Check the `Group by this field first` option will make the chart as you expect.

---

<div class="post-metadata">

### Author: ![behappy\_alwayz0401](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/behappy_alwayz0401/32/105988_2.png) [@behappy\_alwayz0401](https://discuss.elastic.co/u/behappy_alwayz0401)
#### Post date: [June 10, 2022, 5:51am UTC](https://discuss.elastic.co/t/bar-chart-ordering-kibana-lens/306758/4 "2022-06-10T05:51:32Z")

</div>

yes this worked. Turning off other and sorting by this field first works. thank you..

---

<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: [July 8, 2022, 5:51am UTC](https://discuss.elastic.co/t/bar-chart-ordering-kibana-lens/306758/5 "2022-07-08T05:51:48Z")

</div>

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