# Multiple Y-Axis extents on line charts?

**URL:** <https://discuss.elastic.co/t/multiple-y-axis-extents-on-line-charts/46142>\
**Category:** Kibana\
**Created:** [April 2, 2016, 7:43pm UTC](https://discuss.elastic.co/t/multiple-y-axis-extents-on-line-charts/46142 "2016-04-02T19:43:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisR](https://avatars.discourse-cdn.com/v4/letter/c/ecd19e/32.png) [@ChrisR](https://discuss.elastic.co/u/ChrisR)\
**Post date:** [April 2, 2016, 7:43pm UTC](https://discuss.elastic.co/t/multiple-y-axis-extents-on-line-charts/46142/1 "2016-04-02T19:43:14Z")

</div>

Is there way to set separate Y-axis extents for each line on a line chart? Often I want to show changes of two fields that have very different values, and the smaller values become imperceptible and flattened to the bottom of the chart.

Another option would be to add a metric that shows the percentage change from the previous X-axis value.

Are either of these methods available in Kibana?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 3, 2016, 5:08am UTC](https://discuss.elastic.co/t/multiple-y-axis-extents-on-line-charts/46142/2 "2016-04-03T05:08:11Z")

</div>

Not currently, no.

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [April 4, 2016, 3:51pm UTC](https://discuss.elastic.co/t/multiple-y-axis-extents-on-line-charts/46142/3 "2016-04-04T15:51:37Z")

</div>

Chris,

You could create a scripted field that scales some of the values so they're comparable on your line chart.  
So for example, if you had fieldA that was in the range of 0-1024 bytes, and another fieldB that was in the range of megabytes, you could create a scripted field like 'fieldB-MB' with a script like `doc['fieldB'].value / (1024 * 1024)`. Then use that scripted field instead of fieldB on your chart.

Lee

---

<div class="post-metadata">

**Author:** ![ChrisR](https://avatars.discourse-cdn.com/v4/letter/c/ecd19e/32.png) [@ChrisR](https://discuss.elastic.co/u/ChrisR)\
**Post date:** [April 6, 2016, 1:54pm UTC](https://discuss.elastic.co/t/multiple-y-axis-extents-on-line-charts/46142/4 "2016-04-06T13:54:43Z")

</div>

Thanks Lee. That is a handy workaround. It's a little cumbersome when dealing with lots of fields, but it's better than splitting up charts.

---

<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 6, 2017, 1:56pm UTC](https://discuss.elastic.co/t/multiple-y-axis-extents-on-line-charts/46142/5 "2017-07-06T13:56:50Z")

</div>


