# \[Timelion\]Stop showing line if no data is available

**URL:** <https://discuss.elastic.co/t/timelion-stop-showing-line-if-no-data-is-available/129434>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [April 25, 2018, 8:46am UTC](https://discuss.elastic.co/t/timelion-stop-showing-line-if-no-data-is-available/129434 "2018-04-25T08:46:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [April 25, 2018, 8:46am UTC](https://discuss.elastic.co/t/timelion-stop-showing-line-if-no-data-is-available/129434/1 "2018-04-25T08:46:38Z")

</div>

Hi,

I'm using timelion to draw a graph of signal strength. Data is gathered at 5m intervals. The query below works but the problem is that when data stops coming in, the last value if used to continue drawing a line even when no new data is available. The line will only disappear when the selected time range has no data at all.

I've tried the various fit options but no luck. Not using fit works good on e.g. 12 hour intervals, but on shorter intervals, e.g. 3 hours, it shows no data at all despite elastic having data available. Not using .fit() and instead setting the interval to 5 minutes (which works) isn't an option because it will create too many buckets on longer time ranges.

```auto
.es(index='test-*',metric='max:signal').fit(carry).yaxis(2, tickDecimals=1).label('Signal strength')
```

Is there any way to graph at 5 minute intervals but still show gaps in the graph if there is no data?

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [April 27, 2018, 12:47am UTC](https://discuss.elastic.co/t/timelion-stop-showing-line-if-no-data-is-available/129434/2 "2018-04-27T00:47:04Z")

</div>

Does the auto interval work for you without fit?

---

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [April 27, 2018, 2:10am UTC](https://discuss.elastic.co/t/timelion-stop-showing-line-if-no-data-is-available/129434/3 "2018-04-27T02:10:59Z")

</div>

Without fit timelion only shows data when the time range is 12 hours or more so that doesn't work for me.

---

<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:** [May 25, 2018, 2:10am UTC](https://discuss.elastic.co/t/timelion-stop-showing-line-if-no-data-is-available/129434/4 "2018-05-25T02:10:59Z")

</div>

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