4 ms·
D3 is more declarative than jQuery, but not so much as React. selection.enter().append("div").attr("class", "bar") .style("height", function(d){ return
by olmo 10y ago
D3 is more declarative than jQuery, but not so much as React.
selection.enter().append("div").attr("class", "bar")
.style("height", function(d){
return d + "px";
})
.style(“margin-top”, function(d){
return (100 — d) + "px";
});
enter is not imperative, but what you write just afterwards is.