Hacker News new | ask | show | jobs
by dirtyaura 4952 days ago
I think Mike Bostock's (the author of D3) tutorials are really high quality too. https://github.com/mbostock/d3/wiki/Tutorials

However, once you dive a bit deeper with selections and nesting, there are some things that are not immediately obvious how to structure. For example, when we implemented small multiple visualization, figuring out the best way to structure enter and update sets for nested data took a few attempts.

1 comments

This is one of the main reasons I'm writing these tutorials - small multiples (nested selections) in D3 are explained very poorly in the official docs, and are a constant stumbling block for coworkers not very familiar with the library.

Sadly, getting around to properly explaining them will take another lesson or two.

Nested selections/joins/bindings/whatever have definitely been the biggest stumbling block. A tutorial would be much appreciated.
Results after the first one fail to load in the latest Firefox. It looks like a Firefox bug btw, the style and script tags are not being added to the created iframes (except the first, which is always ok) unless I mess with the timing, either by using a 100ms delay in setTimeout() or a breakpoint with Firebug.

PS: it's a fantastic tutorial, thanks for writing it!

I can indeed confirm that only the first example is displayed in firefox (17.0 on Windows XP)
A little late, but I think I fixed this. Working for me now in 17.0/Windows 7
These tutorials have been excellent so far. Do you have an RSS feed that publishes when new tutorials are ready?
hazzen, cool that you are going to cover them. What kind of project are you working on, if I may ask.