# Custom X-axis visual range

**URL:** <https://discuss.elastic.co/t/custom-x-axis-visual-range/63598>\
**Category:** Kibana\
**Created:** [October 21, 2016, 9:58am UTC](https://discuss.elastic.co/t/custom-x-axis-visual-range/63598 "2016-10-21T09:58:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![txisme](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@txisme](https://discuss.elastic.co/u/txisme)\
**Post date:** [October 21, 2016, 9:58am UTC](https://discuss.elastic.co/t/custom-x-axis-visual-range/63598/1 "2016-10-21T09:58:19Z")

</div>

Hi,

i have this graph here:

![](https://us1.discourse-cdn.com/elastic/original/2X/0/044c342069f6b9fb999e2e37a209fbb06ba13f05.png)

as you can see, there are a lot of values (1001), so the X-axis gets pretty loaded visually. Is it possible to change the interval of values that appear in the x-axis without changing the shape of the graph? Or maybe even hide the x-axis values?

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [October 21, 2016, 5:20pm UTC](https://discuss.elastic.co/t/custom-x-axis-visual-range/63598/2 "2016-10-21T17:20:22Z")

</div>

Is `Service` a number field? If so perhaps you could create a histogram instead of using the terms agg. If it's a string field you're in a tougher spot. In 5.0 you could create a [Painless](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/modules-scripting-painless.html) scripted field based on `Service` which reduces the number of unique values and run the terms agg on that.

---

<div class="post-metadata">

**Author:** ![txisme](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@txisme](https://discuss.elastic.co/u/txisme)\
**Post date:** [October 21, 2016, 5:34pm UTC](https://discuss.elastic.co/t/custom-x-axis-visual-range/63598/3 "2016-10-21T17:34:49Z")

</div>

Yes it is a number field and i have tried the Histogram option, but if i set the interval for example to 10, what will happen is that the data will agreggate (don't know if it is the right word) every 10 points and show only a minimum/maximum/..... of each 10 points  
I want to always have the real value, for every point

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [October 21, 2016, 5:44pm UTC](https://discuss.elastic.co/t/custom-x-axis-visual-range/63598/4 "2016-10-21T17:44:09Z")

</div>

Ah apologies, I misunderstood the question. You want to keep the exact same data, but clean up the x-axis. There's no way to do that at the moment. That'd make a good enhancement request on our [github repo](https://github.com/elastic/kibana) though.

---

<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:** [July 6, 2017, 1:36pm UTC](https://discuss.elastic.co/t/custom-x-axis-visual-range/63598/5 "2017-07-06T13:36:01Z")

</div>

Closed on July 6, 2017, 1:36pm UTC


