# Keeping X-Axis Static

**URL:** https://discuss.elastic.co/t/keeping-x-axis-static/218972
**Category:** Kibana
**Created:** [February 12, 2020, 12:26pm UTC](https://discuss.elastic.co/t/keeping-x-axis-static/218972 "2020-02-12T12:26:30Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Ramya\_Tanikanti](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@Ramya\_Tanikanti](https://discuss.elastic.co/u/Ramya_Tanikanti)
#### Post date: [February 12, 2020, 12:26pm UTC](https://discuss.elastic.co/t/keeping-x-axis-static/218972/1 "2020-02-12T12:26:30Z")

</div>

While showing a viz, let's say a vertical graph. If I filter on a particular value by clicking the bar, it shows only that particular bar with respective counts.

Is there a way to show other values even though i click on that bar, the count would obviously be zero. But is there a way to show other values also in that graph?

Kindly help 🙂

---

<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: [February 12, 2020, 4:39pm UTC](https://discuss.elastic.co/t/keeping-x-axis-static/218972/2 "2020-02-12T16:39:03Z")

</div>

You can't do this with the regular "terms" aggregation for example because the x axis categories are dynamically determined during data fetching.

However if you use the "filters" aggregation instead but have to specify the buckets you want to see, but they will stay even if there is no data for them currently.

 ![Screenshot 2020-02-12 at 17.36.47](https://us1.discourse-cdn.com/elastic/original/3X/d/a/da5e92862a6fc69c4331ce5cce10134e535fa443.png)

---

<div class="post-metadata">

### Author: ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)
#### Post date: [February 12, 2020, 4:46pm UTC](https://discuss.elastic.co/t/keeping-x-axis-static/218972/3 "2020-02-12T16:46:01Z")

</div>

In case you are using a chart with a histogram instead of a term you can fix the extents of the X and Y axis. The video below shows Kibana Flights demo data, and doing a histogram using the `DistanceKilometers` field:

 ![Peek 2020-02-12 17-36](https://us1.discourse-cdn.com/elastic/original/3X/3/f/3fa6d18befe89f896a925efe20751aa5fd8917f9.gif)

---

<div class="post-metadata">

### Author: ![Ramya\_Tanikanti](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@Ramya\_Tanikanti](https://discuss.elastic.co/u/Ramya_Tanikanti)
#### Post date: [February 12, 2020, 4:54pm UTC](https://discuss.elastic.co/t/keeping-x-axis-static/218972/5 "2020-02-12T16:54:23Z")

</div>

Thank you so much @flash1293 🤩. What I exactly wanted!!

---

<div class="post-metadata">

### Author: ![Ramya\_Tanikanti](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@Ramya\_Tanikanti](https://discuss.elastic.co/u/Ramya_Tanikanti)
#### Post date: [February 12, 2020, 4:55pm UTC](https://discuss.elastic.co/t/keeping-x-axis-static/218972/6 "2020-02-12T16:55:12Z")

</div>

Thank you so much @jsanz!! 🤩 Really helped!!

---

<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: [March 11, 2020, 4:55pm UTC](https://discuss.elastic.co/t/keeping-x-axis-static/218972/7 "2020-03-11T16:55:18Z")

</div>

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