# Custom y axis interval

**URL:** <https://discuss.elastic.co/t/custom-y-axis-interval/99361>\
**Category:** Kibana\
**Created:** [September 5, 2017, 4:38am UTC](https://discuss.elastic.co/t/custom-y-axis-interval/99361 "2017-09-05T04:38:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Padmavathy](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@Padmavathy](https://discuss.elastic.co/u/Padmavathy)\
**Post date:** [September 5, 2017, 4:38am UTC](https://discuss.elastic.co/t/custom-y-axis-interval/99361/1 "2017-09-05T04:38:37Z")

</div>

I am using Kibana 5.3 and Is there a way i can set y axis as custom interval in line chart and bar charts

Example: The time field of format HH:mm:ss in y axis is to be displayed as 1:00,2:00(that is custom interval of 1 hour).Is the same applicable for numbers(Ex to set custom interval of 5)

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [September 5, 2017, 4:15pm UTC](https://discuss.elastic.co/t/custom-y-axis-interval/99361/2 "2017-09-05T16:15:19Z")

</div>

Time axis display format can be modified by setting the "advanced settings" `dateFormat:scaled`. The time interval is determined by the date\_histogram aggregation interval. If you want one hour intervals then set the "Buckets / Interval" to "Hourly". I don't think there is a way to set a custom interval for the axis that is displaying "Metric" results.

Timelion, [https://www.elastic.co/guide/en/kibana/current/timelion.html](https://www.elastic.co/guide/en/kibana/current/timelion.html), may be another option that provides lots of ways to customize the axises.

---

<div class="post-metadata">

**Author:** ![Padmavathy](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@Padmavathy](https://discuss.elastic.co/u/Padmavathy)\
**Post date:** [September 5, 2017, 11:43pm UTC](https://discuss.elastic.co/t/custom-y-axis-interval/99361/3 "2017-09-05T23:43:43Z")

</div>

Thanks @Nathan_Reese  
But I need this interval for y axis so that before hovering the data ,value is visible to some extent

I tried with timelion with kibana 5.5 but I am unable to scale the date format along y axis.  
Is there a way this can be done?

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [September 6, 2017, 12:22am UTC](https://discuss.elastic.co/t/custom-y-axis-interval/99361/4 "2017-09-06T00:22:13Z")

</div>

Is time on the y-axis? If so, then create a "Horizontal Bar" visualization. The aggregation will be displayed on the y-axis.

---

<div class="post-metadata">

**Author:** ![Padmavathy](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@Padmavathy](https://discuss.elastic.co/u/Padmavathy)\
**Post date:** [September 6, 2017, 4:50am UTC](https://discuss.elastic.co/t/custom-y-axis-interval/99361/5 "2017-09-06T04:50:17Z")

</div>

yes @Nathan_Reese Time is along y axis .Creating horizontal bar visualization seems a good way still the points are in increasing in top-down rather than bottom-up when i plot as a horizontal bargraph

In this case i need the whole graph to be reversed

I need time in y axis in a hourly format that is in [metrics.Is](http://metrics.Is) there a way this can be done?

---

<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:** [October 4, 2017, 4:50am UTC](https://discuss.elastic.co/t/custom-y-axis-interval/99361/6 "2017-10-04T04:50:24Z")

</div>

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