# Line chart with date range calculating the total per day

**URL:** <https://discuss.elastic.co/t/line-chart-with-date-range-calculating-the-total-per-day/247850>\
**Category:** Kibana\
**Created:** [September 8, 2020, 8:51am UTC](https://discuss.elastic.co/t/line-chart-with-date-range-calculating-the-total-per-day/247850 "2020-09-08T08:51:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![importasapo](https://avatars.discourse-cdn.com/v4/letter/i/a9adbd/32.png) [@importasapo](https://discuss.elastic.co/u/importasapo)\
**Post date:** [September 8, 2020, 8:51am UTC](https://discuss.elastic.co/t/line-chart-with-date-range-calculating-the-total-per-day/247850/1 "2020-09-08T08:51:12Z")

</div>

Kibana Line Chart that i have events  
and instead of showing all events per day, I use the date range to show the total of events per day.

After an elastic search updated I start seeing a extra line. This is a Stacked line chart, if i change to normal, this stop happening, however the normal mode is not the expected as the stacked line mode. This is some bug on elastic search? or something that i'm doing it wrong?

 ![date_range](https://us1.discourse-cdn.com/elastic/original/3X/b/d/bdffc5e8e2c5deaffd158f972b1f7a7270cec9df.jpeg)

Problem: I start seeing a duplicated line (not sure if is some data that i have duplicated)  
Any other way to try something link distinct on the query? (i tried "size": 0, but so far nothing) or any other tip?  
The second line is the wrong line

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [September 10, 2020, 7:31pm UTC](https://discuss.elastic.co/t/line-chart-with-date-range-calculating-the-total-per-day/247850/2 "2020-09-10T19:31:21Z")

</div>

Can you show the full configuration of your chart?

---

<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 8, 2020, 7:31pm UTC](https://discuss.elastic.co/t/line-chart-with-date-range-calculating-the-total-per-day/247850/3 "2020-10-08T19:31:22Z")

</div>

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