# Scripted "String" Field not available for Visualisations

**URL:** <https://discuss.elastic.co/t/scripted-string-field-not-available-for-visualisations/161323>\
**Category:** Kibana\
**Created:** [December 18, 2018, 12:35pm UTC](https://discuss.elastic.co/t/scripted-string-field-not-available-for-visualisations/161323 "2018-12-18T12:35:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![999chris](https://avatars.discourse-cdn.com/v4/letter/9/f17d59/32.png) [@999chris](https://discuss.elastic.co/u/999chris)\
**Post date:** [December 18, 2018, 12:35pm UTC](https://discuss.elastic.co/t/scripted-string-field-not-available-for-visualisations/161323/1 "2018-12-18T12:35:38Z")

</div>

Hello,

I have 2 scripted fields: "ratio" (number) and "time\_bucket" (string). These are showing up as expected in "discovery" without issue. I can also use the "ratio" field without issue when creating visualisations however I want to make some "sub-buckets" based upon the value of "time\_bucket". But it doesn't appear in any list when trying to use it in "Visualisations", I cannot use it. Why is this?

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [December 20, 2018, 7:15pm UTC](https://discuss.elastic.co/t/scripted-string-field-not-available-for-visualisations/161323/2 "2018-12-20T19:15:07Z")

</div>

Hmm I'm not sure why that would happen. I just tried it and the field showed up for me.

Which visualization are you trying to use it in? And which aggregation are you selecting?

---

<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 17, 2019, 7:15pm UTC](https://discuss.elastic.co/t/scripted-string-field-not-available-for-visualisations/161323/3 "2019-01-17T19:15:08Z")

</div>

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