News for hackers. Stuff that matters.
Re:Build An Animated Chart In 19 Lines Of Code With d3.js by ajtulloch on Wednesday May 09, 2012 @10:32AM (#3948740)
A few months ago I learned d3.js and made myself an interactive site logo for myself with it. It's an awesome library.

Check out the logo (try clicking it and dragging the letters) and tutorial at http://tullo.ch/2012/making-the-site-logo/.

Re:Build An Animated Chart In 19 Lines Of Code With d3.js by oulipian on Wednesday May 09, 2012 @11:29AM (#3948994)
Your logo doesn't work. I'm using the latest Firefox on a Mac. Error: strengths is undefined.
Re:Build An Animated Chart In 19 Lines Of Code With d3.js by ajtulloch on Wednesday May 09, 2012 @11:48AM (#3949095)
Hmm strange, just tested then and works on my end with Chrome 18 and Firefox 12.0 on OS X.
Re:Build An Animated Chart In 19 Lines Of Code With d3.js by fceccon on Wednesday May 09, 2012 @02:17PM (#3949822)
I'm on Chrome 20 on OS X and I got this error:

    Cannot read property '0' of undefined      d3.v2.js:5166
Re:Build An Animated Chart In 19 Lines Of Code With d3.js by rralian on Wednesday May 09, 2012 @02:29PM (#3949880)
I got this too. It's reproduceable for me if I click on any of the nodes before the page is ready for it, and once this happens I can't use it at all. But if I wait a second or two before doing this it works fine. Using latest chrome.
Re:Build An Animated Chart In 19 Lines Of Code With d3.js by xxbondsxx on Wednesday May 09, 2012 @11:46AM (#3949082)
Same as oulipian, I got some error about 0 being undefined.

Also, if you are planning on doing a spring-mass simulation, it's much better to use arbor.js which has background thread support (and is non-blocking)