# Comparison of stacked bars seems challenging

**URL:** <https://discuss.elastic.co/t/comparison-of-stacked-bars-seems-challenging/85480>\
**Category:** Kibana\
**Created:** [May 11, 2017, 9:07pm UTC](https://discuss.elastic.co/t/comparison-of-stacked-bars-seems-challenging/85480 "2017-05-11T21:07:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nesretep](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nesretep/32/24743_2.png) [@nesretep](https://discuss.elastic.co/u/nesretep)\
**Post date:** [May 11, 2017, 9:07pm UTC](https://discuss.elastic.co/t/comparison-of-stacked-bars-seems-challenging/85480/1 "2017-05-11T21:07:38Z")

</div>

Hi there

We would like to compare activities on bucket analysis from two different time periods. We have tried split chart which is very unsuitable, so the nearest we can come to is two metrics from each datarange on each their own axis. It almost works, but the last problen is dynamic scaling of the axises.  
Is there any possible way to make this visualization?  
Ideally the two bars could be connected to the same axis, but then it all ends up in one bar with the entire total inside. I see two possible ways to go:

a: Make it possible for the two axises to scale according the boundaries of both resultsets

b: Make it possible to prevent the stacking of two different metrics on the same axis

To me it looks like option a would be the easiest solution to implement (if at all neccessary...)  
/Lars

 ![](https://us1.discourse-cdn.com/elastic/original/3X/1/6/162eceba3cd0e5757d9b5cad3696ec428b987aa8.png)

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [May 11, 2017, 9:58pm UTC](https://discuss.elastic.co/t/comparison-of-stacked-bars-seems-challenging/85480/2 "2017-05-11T21:58:38Z")

</div>

In your screenshot, you'll notice the "Scale to Data Bounds" option. If you set this on both of your metrics, does this accomplish your first ask?

---

<div class="post-metadata">

**Author:** ![nesretep](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nesretep/32/24743_2.png) [@nesretep](https://discuss.elastic.co/u/nesretep)\
**Post date:** [May 12, 2017, 7:15am UTC](https://discuss.elastic.co/t/comparison-of-stacked-bars-seems-challenging/85480/3 "2017-05-12T07:15:15Z")

</div>

Yes, but it only affects its own axis which is the intended behaviour. What I seek is a way to make both axises align to each other.

Or a eay to prevent the data from the two metrics from beeing stacked when pointed to the same axis...

---

<div class="post-metadata">

**Author:** ![nesretep](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nesretep/32/24743_2.png) [@nesretep](https://discuss.elastic.co/u/nesretep)\
**Post date:** [May 12, 2017, 7:17am UTC](https://discuss.elastic.co/t/comparison-of-stacked-bars-seems-challenging/85480/4 "2017-05-12T07:17:41Z")

</div>

Sorry, the first word in my previous reply should have been "no"

---

<div class="post-metadata">

**Author:** ![nesretep](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nesretep/32/24743_2.png) [@nesretep](https://discuss.elastic.co/u/nesretep)\
**Post date:** [May 19, 2017, 11:13am UTC](https://discuss.elastic.co/t/comparison-of-stacked-bars-seems-challenging/85480/5 "2017-05-19T11:13:42Z")

</div>

Was there anything I could do to get a comparison with two stacked bars next to each other with the same scaling?

---

<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:** [June 16, 2017, 11:13am UTC](https://discuss.elastic.co/t/comparison-of-stacked-bars-seems-challenging/85480/6 "2017-06-16T11:13:42Z")

</div>

Closed on June 16, 2017, 11:13am UTC

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