# How to divide two Y-Axis in Kibana?

**URL:** <https://discuss.elastic.co/t/how-to-divide-two-y-axis-in-kibana/122808>\
**Category:** Kibana\
**Created:** [March 7, 2018, 3:16am UTC](https://discuss.elastic.co/t/how-to-divide-two-y-axis-in-kibana/122808 "2018-03-07T03:16:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Feng\_Mi](https://avatars.discourse-cdn.com/v4/letter/f/54ee81/32.png) [@Feng\_Mi](https://discuss.elastic.co/u/Feng_Mi)\
**Post date:** [March 7, 2018, 3:16am UTC](https://discuss.elastic.co/t/how-to-divide-two-y-axis-in-kibana/122808/1 "2018-03-07T03:16:02Z")

</div>

![kibana_qa](https://us1.discourse-cdn.com/elastic/original/3X/1/c/1c6f57e8a691a73649d06a77d32da1f4f7cb5702.jpg)

I want use a new Y-Axis to divide the yellow and blue Y-Axis.

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [March 7, 2018, 4:44pm UTC](https://discuss.elastic.co/t/how-to-divide-two-y-axis-in-kibana/122808/2 "2018-03-07T16:44:10Z")

</div>

Hi,

You can add multiple axis from the metrics and axes panel:

 ![add_x_axis](https://us1.discourse-cdn.com/elastic/original/3X/6/2/62d9a7562a7738a4ca980b69430e701518b1381e.png)

Does that help?

Thanks,  
Bhavya

---

<div class="post-metadata">

**Author:** ![Feng\_Mi](https://avatars.discourse-cdn.com/v4/letter/f/54ee81/32.png) [@Feng\_Mi](https://discuss.elastic.co/u/Feng_Mi)\
**Post date:** [March 8, 2018, 6:08am UTC](https://discuss.elastic.co/t/how-to-divide-two-y-axis-in-kibana/122808/3 "2018-03-08T06:08:38Z")

</div>

But I still don't know how to use the third Y-axis to get the division of other two Y-axis

---

<div class="post-metadata">

**Author:** ![Feng\_Mi](https://avatars.discourse-cdn.com/v4/letter/f/54ee81/32.png) [@Feng\_Mi](https://discuss.elastic.co/u/Feng_Mi)\
**Post date:** [March 9, 2018, 8:37am UTC](https://discuss.elastic.co/t/how-to-divide-two-y-axis-in-kibana/122808/4 "2018-03-09T08:37:53Z")

</div>

> [@Feng\_Mi](#):
>
> But I still don't know how to use the third Y-axis to get the division of other two Y-axis

But I still don't know how to use the third Y-axis to get the division of other two Y-axis

---

<div class="post-metadata">

**Author:** ![SeemaAccenture](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@SeemaAccenture](https://discuss.elastic.co/u/SeemaAccenture)\
**Post date:** [March 9, 2018, 9:28am UTC](https://discuss.elastic.co/t/how-to-divide-two-y-axis-in-kibana/122808/5 "2018-03-09T09:28:46Z")

</div>

Hi Feng,

You have to add Metircs to add division on y-axis.

Thanks,  
Seema

---

<div class="post-metadata">

**Author:** ![Feng\_Mi](https://avatars.discourse-cdn.com/v4/letter/f/54ee81/32.png) [@Feng\_Mi](https://discuss.elastic.co/u/Feng_Mi)\
**Post date:** [March 9, 2018, 10:00am UTC](https://discuss.elastic.co/t/how-to-divide-two-y-axis-in-kibana/122808/6 "2018-03-09T10:00:15Z")

</div>

Can you show me how ?

---

<div class="post-metadata">

**Author:** ![SeemaAccenture](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@SeemaAccenture](https://discuss.elastic.co/u/SeemaAccenture)\
**Post date:** [March 9, 2018, 10:11am UTC](https://discuss.elastic.co/t/how-to-divide-two-y-axis-in-kibana/122808/8 "2018-03-09T10:11:36Z")

</div>

![y-axis](https://us1.discourse-cdn.com/elastic/original/3X/5/c/5c73045572817703ea0772bcfc25969f74797570.PNG)

Hope it helps.

Thanks,  
Seema

---

<div class="post-metadata">

**Author:** ![vinodr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vinodr/32/28759_2.png) [@vinodr](https://discuss.elastic.co/u/vinodr)\
**Post date:** [March 18, 2018, 2:46pm UTC](https://discuss.elastic.co/t/how-to-divide-two-y-axis-in-kibana/122808/9 "2018-03-18T14:46:28Z")

</div>

@Feng_Mi If I understand correctly, you are trying to plot another Y-axis with value: Axis1Value/Axis2Value  
In order to achieve this, you will need to create a scripted field in Kibana with value:  
**doc['field1'].value / doc['field2'].value**  
and add a new metric Y-axis in the bar chart based on this newly created scripted field

---

<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:** [April 15, 2018, 2:46pm UTC](https://discuss.elastic.co/t/how-to-divide-two-y-axis-in-kibana/122808/10 "2018-04-15T14:46:35Z")

</div>

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