# How to solve Visualize undefined error

**URL:** <https://discuss.elastic.co/t/how-to-solve-visualize-undefined-error/132142>\
**Category:** Kibana\
**Created:** [May 16, 2018, 1:57pm UTC](https://discuss.elastic.co/t/how-to-solve-visualize-undefined-error/132142 "2018-05-16T13:57:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GibbsKim](https://avatars.discourse-cdn.com/v4/letter/g/4af34b/32.png) [@GibbsKim](https://discuss.elastic.co/u/GibbsKim)\
**Post date:** [May 16, 2018, 1:57pm UTC](https://discuss.elastic.co/t/how-to-solve-visualize-undefined-error/132142/1 "2018-05-16T13:57:47Z")

</div>

Hi. I'm coding custom plugin. It is wanting to show four kibana visualizes.

My ES and Kibana versions are 6.2.2 and plugin files consist of below.

1. **package.json**  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/0/90184a9c9bb0ff90b91922e17ee1eae5595910fc.png)
2. **index.js**  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7e8d270566c81e224e3fa334bf7d666dbf8007c0.png)

upper two things in 'my\_plugin\_folder'

1. **new-app.html**  

2. **new-app.js**  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/4/84252d4b9b491a6d67d93d9fd8256d0f5f2b6274.png)  
5) **new-app-controller.js**  

3. result (in Kibana)  

When I launched, my plug-in, revealed undefined message.  
However, I can not understand where undefined one is located yet.

Whoever tell me solution about this problem?  
thank you for reading

---

<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:** [May 16, 2018, 9:25pm UTC](https://discuss.elastic.co/t/how-to-solve-visualize-undefined-error/132142/2 "2018-05-16T21:25:08Z")

</div>

`getComputedFields` is a property of the `indexPattern`, so maybe the index patterns for the visualizations you're trying to render are not being loaded correctly.

---

<div class="post-metadata">

**Author:** ![GibbsKim](https://avatars.discourse-cdn.com/v4/letter/g/4af34b/32.png) [@GibbsKim](https://discuss.elastic.co/u/GibbsKim)\
**Post date:** [May 18, 2018, 1:45am UTC](https://discuss.elastic.co/t/how-to-solve-visualize-undefined-error/132142/3 "2018-05-18T01:45:44Z")

</div>

Thank you for your reply.  
However, I still not understand yet about ' **indexPatterns**'

At first time, I got this as Index Patterns in management of Kibana.  
But '\_get\_computed\_field.js' file I found in $KIBANA\_HOME below.

If I understand correctly, for visualizing my plug-in that should edit '\_get\_computed\_field.js'?

---

<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 15, 2018, 1:45am UTC](https://discuss.elastic.co/t/how-to-solve-visualize-undefined-error/132142/4 "2018-06-15T01:45:48Z")

</div>

Closed on June 15, 2018, 1:45am UTC

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