News for hackers. Stuff that matters.
Re:D3, Conceptually - Lesson 1 by grabastic on Sunday November 25, 2012 @07:42PM (#4829842)
(I might have missed it in your tutorial, but if not...) It might be worth noting for your readers that attr, style, property and similar methods can accept an object as the argument. Might save people a tiny bit of typing...

    root.selectAll('rect')
            .data(rects).enter()
        .attr({
            x: function (d) { return d.x; },
            y: function (d) { return d.y; },
            width: function (d) { d.w; }
        });
https://github.com/mbostock/d3/pull/277

There are no comments on this comment yet.