# JSON Input Y Axis Calculator

**URL:** <https://discuss.elastic.co/t/json-input-y-axis-calculator/158920>\
**Category:** Kibana\
**Created:** [November 30, 2018, 3:02pm UTC](https://discuss.elastic.co/t/json-input-y-axis-calculator/158920 "2018-11-30T15:02:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miso\_Kajtez](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@Miso\_Kajtez](https://discuss.elastic.co/u/Miso_Kajtez)\
**Post date:** [November 30, 2018, 3:02pm UTC](https://discuss.elastic.co/t/json-input-y-axis-calculator/158920/1 "2018-11-30T15:02:24Z")

</div>

I have two processes running, CSS\_00001 and CSS\_00002. I display these with charts and display the human time and robot time. I have a script that calculates the time using

{"script":"\_value\*3 / 60 / 60"}

Is there a way I can specify different calculation? I want the calculation for processName CSS\_00001 to be {"script":"\_value\*3 / 60 / 60"} and the calculation for CSS\_00002 to be {"script":"\_value \* 2.3 / 60 / 60"}. This way both graphs can be represented together with different calculations shown.

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [December 4, 2018, 1:02am UTC](https://discuss.elastic.co/t/json-input-y-axis-calculator/158920/2 "2018-12-04T01:02:56Z")

</div>

You can probably do this with a scripted field if there was something in the document to determine the metric to use for the calculation.

---

<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:** [January 1, 2019, 1:02am UTC](https://discuss.elastic.co/t/json-input-y-axis-calculator/158920/3 "2019-01-01T01:02:59Z")

</div>

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