News for hackers. Stuff that matters.
Re:How D3 Selections Work by mbostock on Friday April 26, 2013 @02:13PM (#5614493)
There’s an easter egg of sorts in that you can run the shown code snippets in the JavaScript console, and the results in the console will match the shown diagrams. This is thanks to careful inclusion of off-screen elements.

It would be fun to make an interactive tool that generates the diagram directly from the given selection and data (and probably wouldn’t be too hard to repurpose the existing code). But the JavaScript console and element inspector are so useful on their own for learning D3 + DOM, it’s likely more fruitful to encourage people to use the console directly.

Re:How D3 Selections Work by pstuart on Friday April 26, 2013 @02:57PM (#5614744)
When I show friends why I'm excited about web technology today one of the examples I use is your work.
Re:How D3 Selections Work by jmandzik on Friday April 26, 2013 @03:08PM (#5614820)
This article is fantastic, juicy stuff to wrap my head around.

Anytime I whip up a new visualization in d3, I look like a wizard at the office. Thanks Mike! Owe you a beer if you're ever in DC.