Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jrmychrstphr opened this issue Jun 20, 2012 · 1 comment
Closed

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

jrmychrstphr opened this issue Jun 20, 2012 · 1 comment

Comments

@jrmychrstphr
Copy link

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
Copy link
Member

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

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

No branches or pull requests

2 participants