# Heat map Y-axis reverse order

**URL:** <https://discuss.elastic.co/t/heat-map-y-axis-reverse-order/117685>\
**Category:** Kibana\
**Created:** [January 30, 2018, 6:42pm UTC](https://discuss.elastic.co/t/heat-map-y-axis-reverse-order/117685 "2018-01-30T18:42:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![a18](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@a18](https://discuss.elastic.co/u/a18)\
**Post date:** [January 30, 2018, 6:42pm UTC](https://discuss.elastic.co/t/heat-map-y-axis-reverse-order/117685/1 "2018-01-30T18:42:42Z")

</div>

Hi everyone! I am currently working on a heat map on Kibana 6.1.1. I am using histogram aggreagation for both X-axis and Y-axis. When setting the y-axis, I would like it to be sorted in descending order from top to bottom, which means both the smallest X value and the smallest Y value will be at the bottom left corner of the heat map. Is there a direct way to do so? If not, are there any other ways to achieve this? Thanks.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/4/c448f153ed1292fee3f14f36bfd2acb178fa5caf.png)

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [January 31, 2018, 3:32am UTC](https://discuss.elastic.co/t/heat-map-y-axis-reverse-order/117685/2 "2018-01-31T03:32:20Z")

</div>

It's possible this is an issue. Reaching out to the visualization team for more information.

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [January 31, 2018, 7:51am UTC](https://discuss.elastic.co/t/heat-map-y-axis-reverse-order/117685/3 "2018-01-31T07:51:45Z")

</div>

i think that is expected. unfortunately there is currently no way to change that, but should not be hard to do (invert option on an axis)

---

<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:** [February 28, 2018, 7:52am UTC](https://discuss.elastic.co/t/heat-map-y-axis-reverse-order/117685/4 "2018-02-28T07:52:18Z")

</div>

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

---

<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 21, 2020, 9:27am UTC](https://discuss.elastic.co/t/heat-map-y-axis-reverse-order/117685/5 "2020-04-21T09:27:26Z")

</div>

@mpitt found a workaround for this (with a few minor gotchas): [Heatmap Y-Axis reversed](https://discuss.elastic.co/t/heatmap-y-axis-reversed/228894/3)
