# Create(Visualize) vertical chart for below scenario

**URL:** <https://discuss.elastic.co/t/create-visualize-vertical-chart-for-below-scenario/157250>\
**Category:** Kibana\
**Created:** [November 18, 2018, 10:35pm UTC](https://discuss.elastic.co/t/create-visualize-vertical-chart-for-below-scenario/157250 "2018-11-18T22:35:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![manju134](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manju134/32/37791_2.png) [@manju134](https://discuss.elastic.co/u/manju134)\
**Post date:** [November 18, 2018, 10:35pm UTC](https://discuss.elastic.co/t/create-visualize-vertical-chart-for-below-scenario/157250/1 "2018-11-18T22:35:08Z")

</div>

Hi All,

I have a client whose reports are failing from 21:00 PM EST to 03:00 AM EST during the six hour window. I have to create(Visualize) a vertical chart for that particular six hour window and find out how many reports are failing for each day. Please help me on how to create it thanks in advance.

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [November 19, 2018, 5:14pm UTC](https://discuss.elastic.co/t/create-visualize-vertical-chart-for-below-scenario/157250/2 "2018-11-19T17:14:04Z")

</div>

@manju134

create a scripted field [https://www.elastic.co/guide/en/kibana/current/scripted-fields.html](https://www.elastic.co/guide/en/kibana/current/scripted-fields.html) in Kibana where you extract the hour of day from the timestamp of the document.

It would look something like:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/0/3051fd490228ff36dc5e8c2a667dfe2931371b46.png)

Then, you can do a range-search on that new field, where you select only documents in that window:

[http://www.lucenetutorial.com/lucene-query-syntax.html](http://www.lucenetutorial.com/lucene-query-syntax.html)

There's other variations (create a scripted field that returns a boolean if a document is in that window), but that would be the general approach.

---

<div class="post-metadata">

**Author:** ![manju134](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manju134/32/37791_2.png) [@manju134](https://discuss.elastic.co/u/manju134)\
**Post date:** [December 5, 2018, 6:28pm UTC](https://discuss.elastic.co/t/create-visualize-vertical-chart-for-below-scenario/157250/4 "2018-12-05T18:28:52Z")

</div>

thanks @thomasneirynck

But i am unable to see the above in kibana is it available in new version where i am using Version: 5.6.4.  
Is there any other way i can do this as i done have enough access to do scripting.

---

<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 2, 2019, 6:29pm UTC](https://discuss.elastic.co/t/create-visualize-vertical-chart-for-below-scenario/157250/5 "2019-01-02T18:29:04Z")

</div>

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