d3 pack layout with local or hard-coded data #674

jrmychrstphr opened this Issue Jun 20, 2012 · 1 comment


None yet
2 participants

I want to be able to create a bubble chart when not loading the website over the internet for use in an app.

So far, I have tried to get the bubble chart example on the d3 website (http://mbostock.github.com/d3/ex/bubble.html) to work in this manner, but nothing I seem to do will render when not loading the document online.

As far as I can see, I think the issue is that the JSON file is not being read. Reading the d3 API, this is likely to be down to cross-domain requests issues.

Can anyone explain to me how to get around the cross-domain requests issue?

Or is there a way to hard-code hierarchical data in the javascript?


mbostock commented Jun 20, 2012

Please read the wiki. You need to use a web server to view the examples locally.

mbostock closed this Jun 20, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment