# Multiple Y axis

**URL:** <https://discuss.elastic.co/t/multiple-y-axis/235781>\
**Category:** Kibana\
**Created:** [June 4, 2020, 2:25pm UTC](https://discuss.elastic.co/t/multiple-y-axis/235781 "2020-06-04T14:25:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjabrantes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjabrantes/32/78091_2.png) [@cjabrantes](https://discuss.elastic.co/u/cjabrantes)\
**Post date:** [June 4, 2020, 2:25pm UTC](https://discuss.elastic.co/t/multiple-y-axis/235781/1 "2020-06-04T14:25:07Z")

</div>

Hi,

i have a TSVB with request, % success, % of failure.  
% success, % of failure i set the option Separate axis.

the problem is that now i have 3 Y Axis,1 for requests and 1 for % success and other for % failure.

How to have the %success and %failure to share the same "secondary" Axis?  
If i set no, it goes to the "primary" axis.

Thanks,

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [June 12, 2020, 2:43pm UTC](https://discuss.elastic.co/t/multiple-y-axis/235781/2 "2020-06-12T14:43:16Z")

</div>

To have both %success and %failure share the same axis they must be on the same "series",  
if docs can be discerned in success/failure using a specific field or with a query, you can build your TSVB with the following config:

- 1 series that has the request count
- another series that have your percentage aggregation that is grouped by terms or by a set of filters where you can specify `separate axis`

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [June 12, 2020, 2:48pm UTC](https://discuss.elastic.co/t/multiple-y-axis/235781/3 "2020-06-12T14:48:49Z")

</div>

This is a simplified example of my comment

 ![Screenshot 2020-06-12 at 16.47.49](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1a51bfb2ead0e1a68eae5fd58eaf4bb55b7a0149.png) ![Screenshot 2020-06-12 at 16.48.02](https://us1.discourse-cdn.com/elastic/original/3X/4/2/423479b80668a6e782387a4402acdc4649d54bf3.png)

---

<div class="post-metadata">

**Author:** ![cjabrantes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjabrantes/32/78091_2.png) [@cjabrantes](https://discuss.elastic.co/u/cjabrantes)\
**Post date:** [June 15, 2020, 2:08pm UTC](https://discuss.elastic.co/t/multiple-y-axis/235781/4 "2020-06-15T14:08:26Z")

</div>

Hi Marco,

Thanks for your reply, i think that is not possible because i have counters and i use sum(total), sum(success) then a bucket script to divide them.

So i dont think both in same series, that means i must have both % Y axis?

Thanks

---

<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 13, 2020, 2:08pm UTC](https://discuss.elastic.co/t/multiple-y-axis/235781/5 "2020-07-13T14:08:40Z")

</div>

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