# Kibana bar chart empty if ranking is used

**URL:** <https://discuss.elastic.co/t/kibana-bar-chart-empty-if-ranking-is-used/376899>\
**Category:** Kibana\
**Created:** [April 8, 2025, 9:29am UTC](https://discuss.elastic.co/t/kibana-bar-chart-empty-if-ranking-is-used/376899 "2025-04-08T09:29:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rene\_S](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rene_s/32/142503_2.png) [@Rene\_S](https://discuss.elastic.co/u/Rene_S)\
**Post date:** [April 8, 2025, 9:29am UTC](https://discuss.elastic.co/t/kibana-bar-chart-empty-if-ranking-is-used/376899/1 "2025-04-08T09:29:16Z")

</div>

Hi,

we imported several dashboards for uberAgent and try to bring them to the latest and greatest Kibana version. While still in test mode, we create some new visualizations and I have a problem.

We have a list of processes with their average CPU and RAM usage over a period of time. In table mode, I can see all processes and their values and sort them correctly. I try to convert these information into two bar charts. ProcessName/avg CPU and ProcessName/avg RAM.

This is working fine, until I try to sort the bars. I try to sort by avg(CPU) or avg(RAM) and all values are empty. It doesn't matter if I sort asc or desc.

working:

 ![grafik](https://us1.discourse-cdn.com/elastic/original/3X/c/2/c21da265f39e282fe69e6ec5c44f3d47cf9d62b9.png)

Does someone have an idea, how to solve this problem? I'm fairly new to Kibana. Normally I use Grafana so basic concepts of dashboards and visualizations are present 🙂

Thanks

René

---

<div class="post-metadata">

**Author:** ![Rene\_S](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rene_s/32/142503_2.png) [@Rene\_S](https://discuss.elastic.co/u/Rene_S)\
**Post date:** [April 8, 2025, 9:29am UTC](https://discuss.elastic.co/t/kibana-bar-chart-empty-if-ranking-is-used/376899/2 "2025-04-08T09:29:50Z")

</div>

![grafik](https://us1.discourse-cdn.com/elastic/original/3X/0/8/081773f3521bd540212c1e74a0b55fcc415fe516.png)

---

<div class="post-metadata">

**Author:** ![Rene\_S](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rene_s/32/142503_2.png) [@Rene\_S](https://discuss.elastic.co/u/Rene_S)\
**Post date:** [April 8, 2025, 9:30am UTC](https://discuss.elastic.co/t/kibana-bar-chart-empty-if-ranking-is-used/376899/3 "2025-04-08T09:30:27Z")

</div>

not working desc:

 ![grafik](https://us1.discourse-cdn.com/elastic/original/3X/0/8/083638acd940a09a2ebd7b8a375c743dc6fac638.png)

---

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [April 8, 2025, 6:22pm UTC](https://discuss.elastic.co/t/kibana-bar-chart-empty-if-ranking-is-used/376899/4 "2025-04-08T18:22:38Z")

</div>

Hi @Rene_S

if you click on the `Inspect` button on the top bar do you see any data in the table?

Also mind that this is a Ranking option (so how things are fetched from ES), so not a chart sorting feature (how things are sorted on the chart).  
If you are looking on how to sort the items on the chart, you can track this feature enhancement: [[Lens] Allow client-side sorting of dimensions and legends at datasource level for all chart types · Issue #86184 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/86184)

As an alternative you could create a ES|QL chart and impose a sorting in the query, then the chart will just follow that order.
