# How to switch y-axis to x-axis

**URL:** <https://discuss.elastic.co/t/how-to-switch-y-axis-to-x-axis/339393>\
**Category:** Kibana\
**Created:** [July 27, 2023, 7:24am UTC](https://discuss.elastic.co/t/how-to-switch-y-axis-to-x-axis/339393 "2023-07-27T07:24:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hananz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hananz/32/123755_2.png) [@hananz](https://discuss.elastic.co/u/hananz)\
**Post date:** [July 27, 2023, 7:24am UTC](https://discuss.elastic.co/t/how-to-switch-y-axis-to-x-axis/339393/1 "2023-07-27T07:24:06Z")

</div>

Hi

using Kibana 8.8 and lens

my data is series of sample points (CSV file), trying to show a line graph: X-axis as counter and Y-axis as the data points.

the best result is a graph with the axis in the wrong positions.

 ![kibana graph](https://us1.discourse-cdn.com/elastic/original/3X/1/f/1fb0962dd38f7c38680704ba5d3f19bcd9dc5d03.jpeg)

how can I fix it?

Thank you

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [July 27, 2023, 11:23am UTC](https://discuss.elastic.co/t/how-to-switch-y-axis-to-x-axis/339393/2 "2023-07-27T11:23:51Z")

</div>

Hi @hananz,

Welcome to the community! Can you share what the graph looks like with the axis configuration reversed and what you are expecting to see?

---

<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 24, 2023, 11:24am UTC](https://discuss.elastic.co/t/how-to-switch-y-axis-to-x-axis/339393/3 "2023-08-24T11:24:41Z")

</div>

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