Vega visualization not loading static json file from system


(Yash M.) #1

HI folks,

I have tried vega visualization. which is available on 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

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.


(kulkarni) #2

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

Cheers
Rashmi


(Yash M.) #3

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 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 ?


(system) #4

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