# Show line chart interval in label

**URL:** https://discuss.elastic.co/t/show-line-chart-interval-in-label/248498
**Category:** Kibana
**Created:** [September 14, 2020, 9:15am UTC](https://discuss.elastic.co/t/show-line-chart-interval-in-label/248498 "2020-09-14T09:15:15Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![buncieboy](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@buncieboy](https://discuss.elastic.co/u/buncieboy)
#### Post date: [September 14, 2020, 9:15am UTC](https://discuss.elastic.co/t/show-line-chart-interval-in-label/248498/1 "2020-09-14T09:15:16Z")

</div>

We have a line chart visualization to view occurrence over time. The time searched for can vary from hours to 10 years + so we are using the auto interval. Is it possible to pass the current setting of the auto interval to the label, or somewhere so the end-user can easily see it and understand what the graph is showing?

Using 6.8.4 if that matters.

---

<div class="post-metadata">

### Author: ![afharo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/afharo/32/75202_2.png) [@afharo](https://discuss.elastic.co/u/afharo)
#### Post date: [September 14, 2020, 11:52am UTC](https://discuss.elastic.co/t/show-line-chart-interval-in-label/248498/2 "2020-09-14T11:52:43Z")

</div>

Hi @buncieboy,

I just created a fresh visualisation in that same version and I can see the auto interval being reported (mind the `timestamp per 3 hours` label).

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/8/78815fa29d0eb3d09c6eb1d3b0ac239c9dd05013.png)

Is it possible that you are using a custom label so the default text is overwritten?

---

<div class="post-metadata">

### Author: ![buncieboy](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@buncieboy](https://discuss.elastic.co/u/buncieboy)
#### Post date: [September 14, 2020, 12:12pm UTC](https://discuss.elastic.co/t/show-line-chart-interval-in-label/248498/3 "2020-09-14T12:12:53Z")

</div>

Spot on! Don't know why I didn't try that first! Is it possible to change the fieldName part without actually changing the field name? Just as the fieldName isn't as descriptive/user friendly?

---

<div class="post-metadata">

### Author: ![afharo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/afharo/32/75202_2.png) [@afharo](https://discuss.elastic.co/u/afharo)
#### Post date: [September 14, 2020, 12:20pm UTC](https://discuss.elastic.co/t/show-line-chart-interval-in-label/248498/4 "2020-09-14T12:20:35Z")

</div>

Testing on 7.9, the visualisations created in Lens already take into account this issue. But I'm afraid there's no way to do so in 6.8. You can try replicating the same visualisations in Visual Builder. It just doesn't print the field name at all, only the interval 😅

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/b/5bab82ac576bbd0df1b8b62406987b81faf614f3.png)

---

<div class="post-metadata">

### Author: ![buncieboy](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@buncieboy](https://discuss.elastic.co/u/buncieboy)
#### Post date: [September 14, 2020, 12:28pm UTC](https://discuss.elastic.co/t/show-line-chart-interval-in-label/248498/5 "2020-09-14T12:28:44Z")

</div>

No worries, thanks for the help!

---

<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 12, 2020, 12:29pm UTC](https://discuss.elastic.co/t/show-line-chart-interval-in-label/248498/6 "2020-10-12T12:29:03Z")

</div>

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