# How to hide weekends in time series graph?

**URL:** <https://discuss.elastic.co/t/how-to-hide-weekends-in-time-series-graph/54455>\
**Category:** Kibana\
**Created:** [June 30, 2016, 5:55pm UTC](https://discuss.elastic.co/t/how-to-hide-weekends-in-time-series-graph/54455 "2016-06-30T17:55:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Olexij\_Tkatchenko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/olexij_tkatchenko/32/9958_2.png) [@Olexij\_Tkatchenko](https://discuss.elastic.co/u/Olexij_Tkatchenko)\
**Post date:** [June 30, 2016, 5:55pm UTC](https://discuss.elastic.co/t/how-to-hide-weekends-in-time-series-graph/54455/1 "2016-06-30T17:55:01Z")

</div>

Is it possible to hide weekend dates in a time series graph in Kibana?

---

<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:** [June 30, 2016, 9:44pm UTC](https://discuss.elastic.co/t/how-to-hide-weekends-in-time-series-graph/54455/2 "2016-06-30T21:44:58Z")

</div>

There isn't a built in easy config to hide weekends. A possible solution could be date range aggregation with ranges set to not include weekends. Or possibly at index time to add a field stating whether it's a weekend or not and filter it out.

---

<div class="post-metadata">

**Author:** ![vinuja](https://avatars.discourse-cdn.com/v4/letter/v/a4c791/32.png) [@vinuja](https://discuss.elastic.co/u/vinuja)\
**Post date:** [July 1, 2016, 9:10am UTC](https://discuss.elastic.co/t/how-to-hide-weekends-in-time-series-graph/54455/3 "2016-07-01T09:10:46Z")

</div>

> [@jbudz](#):
>
> date range aggregation with ranges set to not include weekends

hey,

I would like to know how do you specify that? ( the format of From - To)  
I would like also to hide the nights...  
So to summarize I would like to work only with the weekdays from 8 to 12 for exemple.

Thanks

---

<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:** [July 1, 2016, 3:21pm UTC](https://discuss.elastic.co/t/how-to-hide-weekends-in-time-series-graph/54455/4 "2016-07-01T15:21:09Z")

</div>

![](https://us1.discourse-cdn.com/elastic/original/2X/7/769d4cb636880692381b60896ca546717a5f055e.png)  
The available date formats can be found at [https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-date-format.html#date-math](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-date-format.html#date-math)

---

<div class="post-metadata">

**Author:** ![Olexij\_Tkatchenko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/olexij_tkatchenko/32/9958_2.png) [@Olexij\_Tkatchenko](https://discuss.elastic.co/u/Olexij_Tkatchenko)\
**Post date:** [July 1, 2016, 3:33pm UTC](https://discuss.elastic.co/t/how-to-hide-weekends-in-time-series-graph/54455/5 "2016-07-01T15:33:02Z")

</div>

I added a flag to elastic search documents which indicates is it a weekend or not. How to tell kibana to exclude those data points from graph?

---

<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:** [July 1, 2016, 3:36pm UTC](https://discuss.elastic.co/t/how-to-hide-weekends-in-time-series-graph/54455/6 "2016-07-01T15:36:30Z")

</div>

In the search bar you can write something like `myWeekendField:false`

---

<div class="post-metadata">

**Author:** ![Olexij\_Tkatchenko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/olexij_tkatchenko/32/9958_2.png) [@Olexij\_Tkatchenko](https://discuss.elastic.co/u/Olexij_Tkatchenko)\
**Post date:** [July 1, 2016, 3:47pm UTC](https://discuss.elastic.co/t/how-to-hide-weekends-in-time-series-graph/54455/7 "2016-07-01T15:47:19Z")

</div>

Thanks will try it on monday!

---

<div class="post-metadata">

**Author:** ![vinuja](https://avatars.discourse-cdn.com/v4/letter/v/a4c791/32.png) [@vinuja](https://discuss.elastic.co/u/vinuja)\
**Post date:** [July 4, 2016, 8:18am UTC](https://discuss.elastic.co/t/how-to-hide-weekends-in-time-series-graph/54455/8 "2016-07-04T08:18:40Z")

</div>

I think that if you just add a flag, with the date histogram, you will still see the weekend dates on the graph , I will just hide the points if you have data for the Week end.  
Concerning the Date Range and Date formats, I think it's a good idea even if I don't understand how can I specify that I want the data from Monday to Friday.  
Let me know if you found anything.  
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:** [July 6, 2017, 1:48pm UTC](https://discuss.elastic.co/t/how-to-hide-weekends-in-time-series-graph/54455/9 "2017-07-06T13:48:23Z")

</div>


