# Changes 5.1.1 to 5.2.1

**URL:** <https://discuss.elastic.co/t/changes-5-1-1-to-5-2-1/76960>\
**Category:** Kibana\
**Created:** [March 1, 2017, 9:52am UTC](https://discuss.elastic.co/t/changes-5-1-1-to-5-2-1/76960 "2017-03-01T09:52:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akaren](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@Akaren](https://discuss.elastic.co/u/Akaren)\
**Post date:** [March 1, 2017, 9:52am UTC](https://discuss.elastic.co/t/changes-5-1-1-to-5-2-1/76960/1 "2017-03-01T09:52:12Z")

</div>

Hi,  
I have created new chart and it was working perfectly in 5.2.1. But after update for 5.2.2. it says:

_TypeError: Cannot read property 'length' of undefined_  
\_ at bind (kibana.bundle.js?v=14707:52)\_  
\_ at Array.d3\_selectionPrototype.data (kibana.bundle.js?v=14707:52)\_  
\_ at HTMLDivElement. (kibana.bundle.js?v=14707:56)\_  
\_ at kibana.bundle.js?v=14707:52\_  
\_ at d3\_selection\_each (kibana.bundle.js?v=14707:48)\_  
\_ at Array.d3\_selectionPrototype.each (kibana.bundle.js?v=14707:52)\_  
\_ at Array. (kibana.bundle.js?v=14707:56)\_  
\_ at Array.d3\_selectionPrototype.call (kibana.bundle.js?v=14707:52)\_  
\_ at Layout.value (kibana.bundle.js?v=14707:61)\_  
\_ at kibana.bundle.js?v=14707:61\_

The error in kibana.bundle.js?v=14707:56 is:  
function bind(group,groupData){var i,node,nodeData,n=group.length,m=groupData.length,...

What is groupData? Elasticsearch returns correct data in response.

---

<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:** [March 1, 2017, 5:45pm UTC](https://discuss.elastic.co/t/changes-5-1-1-to-5-2-1/76960/2 "2017-03-01T17:45:30Z")

</div>

Can you please give some more details about the visualization (type, options) and aggregations used?

---

<div class="post-metadata">

**Author:** ![Akaren](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@Akaren](https://discuss.elastic.co/u/Akaren)\
**Post date:** [March 1, 2017, 6:21pm UTC](https://discuss.elastic.co/t/changes-5-1-1-to-5-2-1/76960/3 "2017-03-01T18:21:30Z")

</div>

Sure, it's Force-Directed Graph. I just get the data from Elasticsearch and then in my code I create associative field that I need for this type of chart. But the error pop up before my code is triggered (I put console.log in the beginning).  
Do you need more info?

---

<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:** [March 1, 2017, 7:29pm UTC](https://discuss.elastic.co/t/changes-5-1-1-to-5-2-1/76960/4 "2017-03-01T19:29:39Z")

</div>

Interesting, this error is being thrown by d3, so your plugin must not be working the way it should. I'm sorry but I don't think I'll be able to debug that remotely. Check that your vistype is unique and that the visualization you creates is still being properly mapped to your vistype. If you describe how you implemented the custom vis I might be able to help more. Links to a Github repository where I could see the code would be very helpful.

---

<div class="post-metadata">

**Author:** ![Akaren](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@Akaren](https://discuss.elastic.co/u/Akaren)\
**Post date:** [March 1, 2017, 7:35pm UTC](https://discuss.elastic.co/t/changes-5-1-1-to-5-2-1/76960/5 "2017-03-01T19:35:40Z")

</div>

I've spent whole day working on it and I've found out if I set hierarchicalData to true, it works. I will receive the data to my chart but in wrong format (I don't want hierarchical). Do you know why it works? 😃

---

<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:** [March 1, 2017, 7:54pm UTC](https://discuss.elastic.co/t/changes-5-1-1-to-5-2-1/76960/6 "2017-03-01T19:54:57Z")

</div>

Hmm, any chance you can hop over to IRC and ping me there?

---

<div class="post-metadata">

**Author:** ![Akaren](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@Akaren](https://discuss.elastic.co/u/Akaren)\
**Post date:** [March 2, 2017, 11:48am UTC](https://discuss.elastic.co/t/changes-5-1-1-to-5-2-1/76960/7 "2017-03-02T11:48:58Z")

</div>

No, I can't. But here is my code [https://github.com/Akaren13/kibana/](https://github.com/Akaren13/kibana/)  
Sorry for code style, it's not done yet.

---

<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:** [March 30, 2017, 11:49am UTC](https://discuss.elastic.co/t/changes-5-1-1-to-5-2-1/76960/8 "2017-03-30T11:49:29Z")

</div>

Closed on March 30, 2017, 11:49am UTC

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