# How to Use range in Y axis in kibana

**URL:** https://discuss.elastic.co/t/how-to-use-range-in-y-axis-in-kibana/110020
**Category:** Kibana
**Created:** [December 2, 2017, 6:29pm UTC](https://discuss.elastic.co/t/how-to-use-range-in-y-axis-in-kibana/110020 "2017-12-02T18:29:08Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![scch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scch/32/25504_2.png) [@scch](https://discuss.elastic.co/u/scch)
#### Post date: [December 2, 2017, 6:29pm UTC](https://discuss.elastic.co/t/how-to-use-range-in-y-axis-in-kibana/110020/1 "2017-12-02T18:29:09Z")

</div>

Can this be achieved through Json input . if yes, let me know how.?

basically i want to specify count between 100 to 500...

if i code {"min\_doc\_count": 100 } in jason input, it shows all the count above 100. how to put upper cap say 500 ? between 100 to 500

---

<div class="post-metadata">

### Author: ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)
#### Post date: [December 5, 2017, 12:51pm UTC](https://discuss.elastic.co/t/how-to-use-range-in-y-axis-in-kibana/110020/2 "2017-12-05T12:51:53Z")

</div>

Hi @scch,

I am not sure I fully understand the question. You want to add a filter to only include buckets that have between 100 and 500 documents? Or do you want to filter documents that have a specific field value between 100 and 500?

---

<div class="post-metadata">

### Author: ![scch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scch/32/25504_2.png) [@scch](https://discuss.elastic.co/u/scch)
#### Post date: [December 5, 2017, 12:54pm UTC](https://discuss.elastic.co/t/how-to-use-range-in-y-axis-in-kibana/110020/3 "2017-12-05T12:54:04Z")

</div>

Hi welten,

I want to add a filter to only include buckets that have between 100 and 500 documents..

thanks... 🙂

---

<div class="post-metadata">

### Author: ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)
#### Post date: [December 5, 2017, 1:01pm UTC](https://discuss.elastic.co/t/how-to-use-range-in-y-axis-in-kibana/110020/4 "2017-12-05T13:01:19Z")

</div>

I don't see a way to do it using Kibana's visualizations, although it is possible to filter out buckets using the [bucket selector](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-selector-aggregation.html) aggregation. You should be able to use it via the [Vega Vis](https://github.com/nyurik/kibana-vega-vis) plugin, because there you fully control the query.

---

<div class="post-metadata">

### Author: ![scch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scch/32/25504_2.png) [@scch](https://discuss.elastic.co/u/scch)
#### Post date: [December 5, 2017, 1:14pm UTC](https://discuss.elastic.co/t/how-to-use-range-in-y-axis-in-kibana/110020/5 "2017-12-05T13:14:39Z")

</div>

Thanks welten.. will try...

---

<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: [January 2, 2018, 1:14pm UTC](https://discuss.elastic.co/t/how-to-use-range-in-y-axis-in-kibana/110020/6 "2018-01-02T13:14:59Z")

</div>

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