# Build Chart Data file

**URL:** <https://discuss.elastic.co/t/build-chart-data-file/125179>\
**Category:** Kibana\
**Created:** [March 22, 2018, 12:02pm UTC](https://discuss.elastic.co/t/build-chart-data-file/125179 "2018-03-22T12:02:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PRANSHU\_MIDHA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pranshu_midha/32/22533_2.png) [@PRANSHU\_MIDHA](https://discuss.elastic.co/u/PRANSHU_MIDHA)\
**Post date:** [March 22, 2018, 12:02pm UTC](https://discuss.elastic.co/t/build-chart-data-file/125179/1 "2018-03-22T12:02:04Z")

</div>

Hi Team Kibana  
I've been trying to migrate this plugin : [https://github.com/nreese/enhanced\_tilemap](https://github.com/nreese/enhanced_tilemap)  
from Kibana v5.2.2 to Kibana v6.1.2  
Now the problem is, when trying to import Build Chart Data from 'ui/vislib\_vis\_type/build\_chart\_data' which was initially present in Kibana v5.2.2.  
But the file doesn't exist in Kibana v6.1.2 at the mentioned path.  
I even tried to explicitly copy the required file at the same path, but it gives an error :

TypeError: Expected private module "undefined" to be a function  
at identify (commons.bundle.js?v=16363:50)  
at Private (commons.bundle.js?v=16363:50)  
at Object. (kibana.bundle.js?v=16363:117)  
at Object.invoke (commons.bundle.js?v=16363:29)  
at extend.instance (commons.bundle.js?v=16363:29)  
at nodeLinkFn (commons.bundle.js?v=16363:29)  
at compositeLinkFn (commons.bundle.js?v=16363:29)  
at commons.bundle.js?v=16363:29  
at Object.link (kibana.bundle.js?v=16363:67)  
at commons.bundle.js?v=16363:29 ""  
Respective code :  
import { VislibVisTypeBuildChartDataProvider } from 'ui/vislib\_vis\_type/build\_chart\_data'; const buildChartData = Private(VislibVisTypeBuildChartDataProvider); // This throws the following error

And it originates here in the bundled file :

var buildChartData = Private(\_build\_chart\_data.VislibVisBuildChartData)

Is it possible that maybe this file exists somewhere else Kibana 6 and I can load it from there.  
Or some changes that I can make in the same file to make it work?

Please help out.  
Thank you

---

<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:** [March 22, 2018, 3:12pm UTC](https://discuss.elastic.co/t/build-chart-data-file/125179/2 "2018-03-22T15:12:17Z")

</div>

linking to answer provided in issue [https://github.com/nreese/enhanced\_tilemap/issues/86#issuecomment-375320813](https://github.com/nreese/enhanced_tilemap/issues/86#issuecomment-375320813)

---

<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:** [April 19, 2018, 3:12pm UTC](https://discuss.elastic.co/t/build-chart-data-file/125179/3 "2018-04-19T15:12:46Z")

</div>

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