# Line charts with default values

**URL:** <https://discuss.elastic.co/t/line-charts-with-default-values/273786>\
**Category:** Kibana\
**Created:** [May 24, 2021, 6:46am UTC](https://discuss.elastic.co/t/line-charts-with-default-values/273786 "2021-05-24T06:46:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikramnr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikramnr/32/66065_2.png) [@vikramnr](https://discuss.elastic.co/u/vikramnr)\
**Post date:** [May 24, 2021, 6:46am UTC](https://discuss.elastic.co/t/line-charts-with-default-values/273786/1 "2021-05-24T06:46:38Z")

</div>

I have line chart showing values for couple of year using Histogram. I'm using count as aggregation to display it on the axes. For some number of days there aren't any values returned as count, as a result graph hangs midway.

Is there any way to change that to drop to zero when no value is present without manipulating the data.

Attaching image

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/6/464840ac7fcc9518b67e5399bd9da412c9f9fb52.png)

---

<div class="post-metadata">

**Author:** ![cheiligers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cheiligers/32/73114_2.png) [@cheiligers](https://discuss.elastic.co/u/cheiligers)\
**Post date:** [May 25, 2021, 9:15pm UTC](https://discuss.elastic.co/t/line-charts-with-default-values/273786/2 "2021-05-25T21:15:27Z")

</div>

@vikramnr I don't know what version of the stack you're running but I think you'll find changing your visualization to Lens would give you the option of setting a default for the "missing" data. You could also try adjusting your time frame for the vis, as suggested [here](https://discuss.elastic.co/t/how-to-handle-gaps-in-date-histogram-missing-values-in-kibana-and-elastic-search/255430).

---

<div class="post-metadata">

**Author:** ![vikramnr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikramnr/32/66065_2.png) [@vikramnr](https://discuss.elastic.co/u/vikramnr)\
**Post date:** [May 27, 2021, 5:05am UTC](https://discuss.elastic.co/t/line-charts-with-default-values/273786/3 "2021-05-27T05:05:52Z")

</div>

Thanks @cheiligers I was able to resolve that with recent version of Lens and I hope there is no solution in Kibana `7.5.1` versions?

---

<div class="post-metadata">

**Author:** ![cheiligers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cheiligers/32/73114_2.png) [@cheiligers](https://discuss.elastic.co/u/cheiligers)\
**Post date:** [May 27, 2021, 3:26pm UTC](https://discuss.elastic.co/t/line-charts-with-default-values/273786/4 "2021-05-27T15:26:29Z")

</div>

Lens was [introduced as Beta](https://www.elastic.co/blog/introducing-kibana-lens) in version 7.5 so, yes, there is a solution for you there.  
Please note though that there has been significant progress since the Beta version.

---

<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:** [June 24, 2021, 3:27pm UTC](https://discuss.elastic.co/t/line-charts-with-default-values/273786/5 "2021-06-24T15:27:00Z")

</div>

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