# How to visualise this data on a single stacked histogram?

**URL:** <https://discuss.elastic.co/t/how-to-visualise-this-data-on-a-single-stacked-histogram/76635>\
**Category:** Kibana\
**Created:** [February 27, 2017, 2:17pm UTC](https://discuss.elastic.co/t/how-to-visualise-this-data-on-a-single-stacked-histogram/76635 "2017-02-27T14:17:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevedearl](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@stevedearl](https://discuss.elastic.co/u/stevedearl)\
**Post date:** [February 27, 2017, 2:17pm UTC](https://discuss.elastic.co/t/how-to-visualise-this-data-on-a-single-stacked-histogram/76635/1 "2017-02-27T14:17:59Z")

</div>

Hi Kibana-peeps,

Can anyone provide some advice on how to create a single, stacked histogram based on the following data. At the moment everything I'm trying results in split charts which I'd like to avoid.

My data is time-based events which record when an application starts or stops. I have a number of different applications in my environment.

Records in ES will be created with these fields:

- eventTimestamp: the datetime the application started or stopped
- context: will be one of either "APPLICATION STARTED" or "APPLICATION STOPPED"
- appName: the name of the application
- hostname: the host on which the application was running

Ideally I was hoping to create a grouped date histogram where the data was grouped by appName but the individual bars were stacked to distinguish 'APPLICATION STARTED' events from 'APPLICATION STOPPED' events.

The grouped date histogram bit is fine, but my only option for the next bit appears to be to add a new x-axis sub-bucket of type split-chart, and add two filters on the 'context' field.

Can anyone offer any advice on whether its possible to do this without needing the 'split chart'?

Cheers,  
Steve

---

<div class="post-metadata">

**Author:** ![Stacey\_Gammon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stacey_gammon/32/14025_2.png) [@Stacey\_Gammon](https://discuss.elastic.co/u/Stacey_Gammon)\
**Post date:** [February 27, 2017, 9:22pm UTC](https://discuss.elastic.co/t/how-to-visualise-this-data-on-a-single-stacked-histogram/76635/2 "2017-02-27T21:22:46Z")

</div>

I don't believe this is possible now, but will be possible once this feature is complete: [https://github.com/elastic/kibana/pull/10070](https://github.com/elastic/kibana/pull/10070)

@ppisljar can you confirm?

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [February 27, 2017, 9:55pm UTC](https://discuss.elastic.co/t/how-to-visualise-this-data-on-a-single-stacked-histogram/76635/3 "2017-02-27T21:55:11Z")

</div>

so just to confirm i understand correctly 🙂  
you want a chart where on x axis you have date histogram  
on y axis you want stacked bars, 2 for each appName (started and stopped) ?

---

<div class="post-metadata">

**Author:** ![stevedearl](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@stevedearl](https://discuss.elastic.co/u/stevedearl)\
**Post date:** [February 28, 2017, 8:09am UTC](https://discuss.elastic.co/t/how-to-visualise-this-data-on-a-single-stacked-histogram/76635/4 "2017-02-28T08:09:08Z")

</div>

Hi Peter,

That's correct. Basically I've got a number of applications in production which could be stopped/started at any time of day, and I want to be able to report on/visualise when this has happened.  
Stacking the stop/start events for an individual application was an idea I had in an attempt to 'declutter' the chart, as when I have lots of applications the chart gets a bit busy otherwise.

Stacey - thanks for your input too.

Best regards,  
Steve

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [February 28, 2017, 10:11am UTC](https://discuss.elastic.co/t/how-to-visualise-this-data-on-a-single-stacked-histogram/76635/5 "2017-02-28T10:11:54Z")

</div>

i think (hope) this will be possible once we add pipeline bucket aggs [https://github.com/elastic/kibana/pull/10070](https://github.com/elastic/kibana/pull/10070)

---

<div class="post-metadata">

**Author:** ![stevedearl](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@stevedearl](https://discuss.elastic.co/u/stevedearl)\
**Post date:** [March 1, 2017, 10:37am UTC](https://discuss.elastic.co/t/how-to-visualise-this-data-on-a-single-stacked-histogram/76635/6 "2017-03-01T10:37:09Z")

</div>

Hi Peter,

Thanks for the update. I'll keep an eye out for this feature.

Cheers,  
Steve

---

<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:** [March 29, 2017, 10:37am UTC](https://discuss.elastic.co/t/how-to-visualise-this-data-on-a-single-stacked-histogram/76635/7 "2017-03-29T10:37:28Z")

</div>

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