# Vega visualization not loading static json file from system

**URL:** https://discuss.elastic.co/t/vega-visualization-not-loading-static-json-file-from-system/130028
**Category:** Kibana
**Created:** [April 30, 2018, 1:27pm UTC](https://discuss.elastic.co/t/vega-visualization-not-loading-static-json-file-from-system/130028 "2018-04-30T13:27:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![yash\_mangla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yash_mangla/32/25889_2.png) [@yash\_mangla](https://discuss.elastic.co/u/yash_mangla)
#### Post date: [April 30, 2018, 1:27pm UTC](https://discuss.elastic.co/t/vega-visualization-not-loading-static-json-file-from-system/130028/1 "2018-04-30T13:27:39Z")

</div>

HI folks,

I have tried vega visualization. which is available on [https://vega.github.io/editor/#/examples/vega/treemap](https://vega.github.io/editor/#/examples/vega/treemap)  
i have saved "flare.json" file in local system and accessible using file:/// on browser. but when i'm giving the path and execute the vega script it's throwing some exception over browser saying

![image](https://us1.discourse-cdn.com/elastic/original/3X/f/d/fde80fb4ee549ba945acc81a7d91fca940fca421.png)

i enabled "vega.enableExternalUrls: true" in kibana.yml file.  
So i have some queries at this point

> ```
> 1. is there any something else which i have to enable i kibana.yml.
> 2. which type of path is required to load the data file absolute/relative ?
> 3. have anyone created vega visualization in kibana without loading data in elasticsearch ?
> 
> ```

If anyone faced something similar and resolved kindly help me out.

Thanks,  
Yash M.

---

<div class="post-metadata">

### Author: ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)
#### Post date: [April 30, 2018, 1:54pm UTC](https://discuss.elastic.co/t/vega-visualization-not-loading-static-json-file-from-system/130028/2 "2018-04-30T13:54:32Z")

</div>

Thanks for your question. Pinging @nyuriks for more insight into this...

Cheers  
Rashmi

---

<div class="post-metadata">

### Author: ![yash\_mangla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yash_mangla/32/25889_2.png) [@yash\_mangla](https://discuss.elastic.co/u/yash_mangla)
#### Post date: [May 2, 2018, 6:29am UTC](https://discuss.elastic.co/t/vega-visualization-not-loading-static-json-file-from-system/130028/3 "2018-05-02T06:29:32Z")

</div>

Hello rashmi,

I have seen some post of @nyuriks but i'm not sure whether it is appropriate solution of my problem or not.

When i get this error Initially i was thinking it is because browser itself disabled file loading because of security reasons. then i started a localhost at 9004 port and put my data there. but still it showing same error.  
but if i put [vega.github.io](http://vega.github.io) data url then it's works magically. it seems like it accepting data only from a particular domain.

> Is there any other way where i can represent my static data over vega visualization ?

---

<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: [May 30, 2018, 6:29am UTC](https://discuss.elastic.co/t/vega-visualization-not-loading-static-json-file-from-system/130028/4 "2018-05-30T06:29:33Z")

</div>

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