I’m looking at Mike Bostock’s particles example for D3.js.
I have copied and pasted the code locally, without changing anything at all. I’m running the code using SimpleHTTPServer, so there shouldn’t be any security issues to do with running locally.
Whenever I mouseover the body, I see the following error in the console:
Uncaught TypeError: Object #<Object> has no method 'mouse'
Does anyone know what might be going on? Can anyone get it to work locally?
Thanks.
Did you actually hardcopied the entire referenced library? It could be an inter-domain referencing issue. Did you do a reference directly to
http://mbostock.github.com/d3/d3.js?1.25.0? it could be, that this is not possible from outside that domain.