# Dynamically change X axis interval

**URL:** <https://discuss.elastic.co/t/dynamically-change-x-axis-interval/79244>\
**Category:** Kibana\
**Created:** [March 20, 2017, 11:53am UTC](https://discuss.elastic.co/t/dynamically-change-x-axis-interval/79244 "2017-03-20T11:53:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishalkin](https://avatars.discourse-cdn.com/v4/letter/v/ccd318/32.png) [@vishalkin](https://discuss.elastic.co/u/vishalkin)\
**Post date:** [March 20, 2017, 11:53am UTC](https://discuss.elastic.co/t/dynamically-change-x-axis-interval/79244/1 "2017-03-20T11:53:54Z")

</div>

Hi,

I want to design 4 visualizations that shows data:

1. Hourly (last 24 hrs)
2. Daily (last 20 days)
3. Weekly (last 10 weeks)
4. Monthly (last 12 months)

Creating 4 different visualizations makes no sense as they show same data and only the timeline on X-axis is changing.

Is there any way where I can create only one visualization and the X-axis will dynamically change depending on the filter/input from a drop down.?

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [March 21, 2017, 7:42pm UTC](https://discuss.elastic.co/t/dynamically-change-x-axis-interval/79244/2 "2017-03-21T19:42:14Z")

</div>

Unfortunately, there isn't a great way to accomplish this today. The closest you can get is to create a visualization with the interval of type "auto" and then you'll get an automatically calculated interval, but there's no guarantee it will be the exact interval you desire.

---

<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:** [April 18, 2017, 7:42pm UTC](https://discuss.elastic.co/t/dynamically-change-x-axis-interval/79244/3 "2017-04-18T19:42:21Z")

</div>

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