/* d3.selection.place() - an unofficial add-on Place one item of the given tag and class (as "tag.class") into the DOM, unless it already exists. Returns the selection either found in or just added to the DOM. Caveats: Used d3.jetpack append with class. Might do multiple appends for selections of more than one element. Might be slow. */ d3.selection.prototype.place = function(selector) { sel = this.select(selector); if (sel.empty()){ sel = this.append(selector) } return sel; };