In the following code, suppose $sel is an arbitrary choice of d3.js:
$sel.each(function(d, i, j) { var prev = ??? ; ... });
What can I replace ??? to assign the prev choice d3.js consisting of the previous brother to this (if one exists)?
(If this is the first child and therefore does not have a previous sibling, the empty choice d3.js should be assigned prev .)
kjo
source share