# Scripted Field

**URL:** <https://discuss.elastic.co/t/scripted-field/2556>\
**Category:** Kibana\
**Created:** [June 12, 2015, 9:55am UTC](https://discuss.elastic.co/t/scripted-field/2556 "2015-06-12T09:55:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saket\_Kumar](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Saket\_Kumar](https://discuss.elastic.co/u/Saket_Kumar)\
**Post date:** [June 12, 2015, 9:55am UTC](https://discuss.elastic.co/t/scripted-field/2556/1 "2015-06-12T09:55:09Z")

</div>

I have two field array in event "Progress": [10, 30, 50 ,80, 100] and "time\_sec" : [0, 2, 3, 5, 6]

I want to put "Progress" on Y-Axis & "time\_sec" on X-Axis. However above values are array hence would like to use scripted field.

added following but no luck doc["Progress"].values. getting error when queried ELK.

Any suggestion?

---

<div class="post-metadata">

**Author:** ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)\
**Post date:** [June 12, 2015, 10:26am UTC](https://discuss.elastic.co/t/scripted-field/2556/2 "2015-06-12T10:26:14Z")

</div>

Unfortunately expressions only support non-array fields at this time.

---

<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, 2:18pm UTC](https://discuss.elastic.co/t/scripted-field/2556/3 "2017-07-06T14:18:13Z")

</div>


