# How to make Visualization x axis terms in certain order

**URL:** <https://discuss.elastic.co/t/how-to-make-visualization-x-axis-terms-in-certain-order/338038>\
**Category:** Kibana\
**Tags:** visualisation\
**Created:** [July 10, 2023, 5:59pm UTC](https://discuss.elastic.co/t/how-to-make-visualization-x-axis-terms-in-certain-order/338038 "2023-07-10T17:59:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![grace\_Li](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grace_li/32/122518_2.png) [@grace\_Li](https://discuss.elastic.co/u/grace_Li)\
**Post date:** [July 10, 2023, 5:59pm UTC](https://discuss.elastic.co/t/how-to-make-visualization-x-axis-terms-in-certain-order/338038/1 "2023-07-10T17:59:54Z")

</div>

Hi,

I'm trying to build a visualization with some text type terms as x-axis.  
Is there a way to put these text value in a given order instead of by alphabetical?

For example I'd like to have the response time as Y-axis, and for X-axis should be the order of login-create-edit-send... etc.

Thanks!

---

<div class="post-metadata">

**Author:** ![eMitch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emitch/32/93607_2.png) [@eMitch](https://discuss.elastic.co/u/eMitch)\
**Post date:** [July 11, 2023, 12:24am UTC](https://discuss.elastic.co/t/how-to-make-visualization-x-axis-terms-in-certain-order/338038/2 "2023-07-11T00:24:53Z")

</div>

Hey @grace_Li!

One way to do this is to use a Filter within the Axis. This can work well if you have a small subset of pages and they don't change.

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

here, I'm using bytes SUM, but have added filters to specify what I want to see. you can then order them accordingly as well.

Another option could be to use Runtime Fields that look at the data in your URL field, and depending on the page (login, create, edit, etc) you can add a sorting field in which the values start with a number (1 - Login, 2 - Create, 3 - Edit, etc) so that if you use that sorting field and sort alphabetically, then you will end up with the specific data values you want.

---

<div class="post-metadata">

**Author:** ![grace\_Li](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grace_li/32/122518_2.png) [@grace\_Li](https://discuss.elastic.co/u/grace_Li)\
**Post date:** [July 12, 2023, 7:49pm UTC](https://discuss.elastic.co/t/how-to-make-visualization-x-axis-terms-in-certain-order/338038/3 "2023-07-12T19:49:02Z")

</div>

Hi @eMitch ,

Thanks for the reply. This is really helpful for my case!

---

<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:** [August 9, 2023, 7:49pm UTC](https://discuss.elastic.co/t/how-to-make-visualization-x-axis-terms-in-certain-order/338038/4 "2023-08-09T19:49:29Z")

</div>

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