# Month starts in the middle on Timelion intervals

**URL:** <https://discuss.elastic.co/t/month-starts-in-the-middle-on-timelion-intervals/143654>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [August 9, 2018, 8:51am UTC](https://discuss.elastic.co/t/month-starts-in-the-middle-on-timelion-intervals/143654 "2018-08-09T08:51:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Domenico\_Raimondi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/domenico_raimondi/32/28631_2.png) [@Domenico\_Raimondi](https://discuss.elastic.co/u/Domenico_Raimondi)\
**Post date:** [August 9, 2018, 8:51am UTC](https://discuss.elastic.co/t/month-starts-in-the-middle-on-timelion-intervals/143654/1 "2018-08-09T08:51:53Z")

</div>

Hello, this is a very similar question to [Quarter date histogram in Kibana 4](https://discuss.elastic.co/t/quarter-date-histogram-in-kibana-4/34644)

Basically, when I'm creating a timelion graph with a custom interval=1M, months start on the 15th or the 16th... which is not intuitive. 🙂

Please check the attached screenshot

How do I specify the start dates of months?

Thank you and best regards,  
Domenico Raimondi

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/6/26bd3e5502a94d2222fadfc90748e9bc1ec0fd63.png)

---

<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:** [August 9, 2018, 4:28pm UTC](https://discuss.elastic.co/t/month-starts-in-the-middle-on-timelion-intervals/143654/2 "2018-08-09T16:28:56Z")

</div>

Do not use `interval` in the `.es` function. the docs for `interval` state " **DO NOT USE THIS**. Its fun for debugging fit functions, but you really should use the interval picker".

To set the interval to Months, use the `Interval` select located above the `Timelion Expression` input.

---

<div class="post-metadata">

**Author:** ![Domenico\_Raimondi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/domenico_raimondi/32/28631_2.png) [@Domenico\_Raimondi](https://discuss.elastic.co/u/Domenico_Raimondi)\
**Post date:** [August 23, 2018, 2:36pm UTC](https://discuss.elastic.co/t/month-starts-in-the-middle-on-timelion-intervals/143654/3 "2018-08-23T14:36:06Z")

</div>

Ok, I understand that it should not be used. Is there any other way to specify a similar style (flat line for the whole interval period, instead of just a slanted line connecting the dots), without using .bars() ?

BTW Thank you for your quick reply Nathan 🙂

---

<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:** [August 23, 2018, 3:14pm UTC](https://discuss.elastic.co/t/month-starts-in-the-middle-on-timelion-intervals/143654/4 "2018-08-23T15:14:24Z")

</div>

You can set steps to true in the `lines` method to show line as step, e.g., do not interpolate between points.

`.es(index=kibana_sample_data_flights,timefield=timestamp).lines(steps=true)`

 ![07%20AM](https://us1.discourse-cdn.com/elastic/original/3X/0/b/0b1ccb67300b3793c8033214880cd6042ad2a8b3.png)

---

<div class="post-metadata">

**Author:** ![Domenico\_Raimondi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/domenico_raimondi/32/28631_2.png) [@Domenico\_Raimondi](https://discuss.elastic.co/u/Domenico_Raimondi)\
**Post date:** [August 23, 2018, 3:28pm UTC](https://discuss.elastic.co/t/month-starts-in-the-middle-on-timelion-intervals/143654/5 "2018-08-23T15:28:33Z")

</div>

Perfect, thank you! 😄

---

<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:** [September 20, 2018, 3:28pm UTC](https://discuss.elastic.co/t/month-starts-in-the-middle-on-timelion-intervals/143654/6 "2018-09-20T15:28:40Z")

</div>

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