# Heatmap Y-Axis reversed

**URL:** <https://discuss.elastic.co/t/heatmap-y-axis-reversed/228894>\
**Category:** Kibana\
**Created:** [April 20, 2020, 3:08pm UTC](https://discuss.elastic.co/t/heatmap-y-axis-reversed/228894 "2020-04-20T15:08:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpitt](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@mpitt](https://discuss.elastic.co/u/mpitt)\
**Post date:** [April 20, 2020, 3:08pm UTC](https://discuss.elastic.co/t/heatmap-y-axis-reversed/228894/1 "2020-04-20T15:08:45Z")

</div>

Same issue as [Heat map Y-axis reverse order](https://discuss.elastic.co/t/heat-map-y-axis-reverse-order/117685)

Looks still unfixed after more than 2 years, any chance it will be worked on?

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [April 20, 2020, 4:28pm UTC](https://discuss.elastic.co/t/heatmap-y-axis-reversed/228894/2 "2020-04-20T16:28:17Z")

</div>

> Looks still unfixed after more than 2 years, any chance it will be worked on?

As this is expected behavior and not a bug, it's not on our radar to add this feature as long as there is no feature request. Kibana is using this forum to answer questions around the product, but Github issues to track features and bugs.

I didn't find a similar issue already covering this in the Kibana repository. If you think this is an important feature which should get added to Kibana, feel free to open one here: [Sign in to GitHub · GitHub](https://github.com/elastic/kibana/issues/new?template=Feature_request.md)

---

<div class="post-metadata">

**Author:** ![mpitt](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@mpitt](https://discuss.elastic.co/u/mpitt)\
**Post date:** [April 21, 2020, 9:16am UTC](https://discuss.elastic.co/t/heatmap-y-axis-reversed/228894/3 "2020-04-21T09:16:57Z")

</div>

Ok, looks like I found a way to get what I want. Kibana is just showing whatever it gets from ES, and the default for histograms is to sort by key ascending. Luckily the Histogram aggregation supports the `order` setting with the same functionality as the Terms aggregation, and Kibana lets you add custom JSON to the aggregation.

So, my solution is to add `{"order": {"_key": "desc"}}` in the "JSON input" field:

 ![Screenshot 2020-04-21 at 11.11.16](https://us1.discourse-cdn.com/elastic/original/3X/f/e/fea24499d7521b0d785acd36166f66d297779649.png)

Note that it might still not work fully as intended unless "Show empty buckets" is selected and "Extended bounds" are specified, depending on how the data comes in. But that's a separate [bug](https://github.com/elastic/kibana/issues/11109).

(@flash1293 Do you think you could add a link to this "solution" to the [original topic](https://discuss.elastic.co/t/heat-map-y-axis-reverse-order/117685)? It might help someone)

---

<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:** [May 19, 2020, 9:17am UTC](https://discuss.elastic.co/t/heatmap-y-axis-reversed/228894/4 "2020-05-19T09:17:00Z")

</div>

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