# Index Patterns: usable for all viz. types?

**URL:** <https://discuss.elastic.co/t/index-patterns-usable-for-all-viz-types/130911>\
**Category:** Kibana\
**Created:** [May 7, 2018, 10:47pm UTC](https://discuss.elastic.co/t/index-patterns-usable-for-all-viz-types/130911 "2018-05-07T22:47:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahilee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mahilee/32/35968_2.png) [@mahilee](https://discuss.elastic.co/u/mahilee)\
**Post date:** [May 7, 2018, 10:47pm UTC](https://discuss.elastic.co/t/index-patterns-usable-for-all-viz-types/130911/1 "2018-05-07T22:47:17Z")

</div>

Can anyone confirm if its possible to refer to Index Patterns (for their calculated fields) in visualization charts such as: vega, timelion, and visual builder?

Many thanks,

Lee

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [May 7, 2018, 10:52pm UTC](https://discuss.elastic.co/t/index-patterns-usable-for-all-viz-types/130911/2 "2018-05-07T22:52:05Z")

</div>

timelion scripted field support was added in 6.1.0

vega and visual builder do not support scripted fields yet

---

<div class="post-metadata">

**Author:** ![mahilee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mahilee/32/35968_2.png) [@mahilee](https://discuss.elastic.co/u/mahilee)\
**Post date:** [May 7, 2018, 11:00pm UTC](https://discuss.elastic.co/t/index-patterns-usable-for-all-viz-types/130911/3 "2018-05-07T23:00:38Z")

</div>

Hi @Nathan_Reese, Does this mean one needs to duplicate scripted field definitions per-visualization?

---

<div class="post-metadata">

**Author:** ![mahilee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mahilee/32/35968_2.png) [@mahilee](https://discuss.elastic.co/u/mahilee)\
**Post date:** [May 15, 2018, 4:02am UTC](https://discuss.elastic.co/t/index-patterns-usable-for-all-viz-types/130911/4 "2018-05-15T04:02:38Z")

</div>

A further question on Index Pattern work arounds: Another feature that Index Patterns support is  
formatting of the field code values retrieved from indexes...

Q: Perhaps there is an alternate way of doing this for visualizations that don't use Index Patterns, ideally centralising this without repeating on a per-visualization basis?

And/or what is the right approach for supporting different locale text translations of field values?

---

<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:** [June 12, 2018, 4:02am UTC](https://discuss.elastic.co/t/index-patterns-usable-for-all-viz-types/130911/5 "2018-06-12T04:02:42Z")

</div>

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