lundi 2 février 2015

Is it useful to select none with D3, and how?


I want a call to d3.selectAll to return nothing. It seems like this should be a common pattern, something like -



d3.selectAll(false) // maybe?
.data([10,20,30])
.enter()
// ... manipulate


Which would require a selector returning nothing. Is this on track?





Aucun commentaire:

Enregistrer un commentaire