# Heat Map with Date on one axis and time of the day on the other axis

**URL:** <https://discuss.elastic.co/t/heat-map-with-date-on-one-axis-and-time-of-the-day-on-the-other-axis/161584>\
**Category:** Kibana\
**Created:** [December 19, 2018, 7:01pm UTC](https://discuss.elastic.co/t/heat-map-with-date-on-one-axis-and-time-of-the-day-on-the-other-axis/161584 "2018-12-19T19:01:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![stalwar1](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@stalwar1](https://discuss.elastic.co/u/stalwar1)\
**Post date:** [December 19, 2018, 7:01pm UTC](https://discuss.elastic.co/t/heat-map-with-date-on-one-axis-and-time-of-the-day-on-the-other-axis/161584/1 "2018-12-19T19:01:56Z")

</div>

Hi All -

I am very new to Kibana (2nd day) and I am trying to build a heat map where I can use date and time of the day on each of the axes.

Currently, this is what I have  
X-Axis  
Aggregation -\> Date Histogram  
Interval -\> Hourly

Y-Axis  
Aggregation -\> Date Histogram  
Interval -\> Daily

This almost works except the fact that I see Date and time on the Y-axis instead of just time of the day.

I hope I was able to explain my issue.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 19, 2018, 8:30pm UTC](https://discuss.elastic.co/t/heat-map-with-date-on-one-axis-and-time-of-the-day-on-the-other-axis/161584/2 "2018-12-19T20:30:55Z")

</div>

When you mean time of day, do you mean splitting it into hours from 0-23?

---

<div class="post-metadata">

**Author:** ![stalwar1](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@stalwar1](https://discuss.elastic.co/u/stalwar1)\
**Post date:** [December 19, 2018, 8:42pm UTC](https://discuss.elastic.co/t/heat-map-with-date-on-one-axis-and-time-of-the-day-on-the-other-axis/161584/3 "2018-12-19T20:42:37Z")

</div>

Yes, that is what I mean

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 19, 2018, 8:47pm UTC](https://discuss.elastic.co/t/heat-map-with-date-on-one-axis-and-time-of-the-day-on-the-other-axis/161584/4 "2018-12-19T20:47:00Z")

</div>

You need to extract the hour to it's own field (ideal approach), or use a scripted field (suboptimal approach). Kibana/Elasticsearch work on the full timestamp, not a portion of it.

---

<div class="post-metadata">

**Author:** ![stalwar1](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@stalwar1](https://discuss.elastic.co/u/stalwar1)\
**Post date:** [December 20, 2018, 1:51pm UTC](https://discuss.elastic.co/t/heat-map-with-date-on-one-axis-and-time-of-the-day-on-the-other-axis/161584/5 "2018-12-20T13:51:55Z")

</div>

Thanks @warkolm. We actually ended up doing just that.

---

<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:** [January 17, 2019, 1:52pm UTC](https://discuss.elastic.co/t/heat-map-with-date-on-one-axis-and-time-of-the-day-on-the-other-axis/161584/6 "2019-01-17T13:52:10Z")

</div>

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