myEnterSelection.insert( tagName, beforeSelector ) in D3.js
Create and insert new elements before existing ones, returning a selection of the new elements.
Arguments
name | type | description |
---|---|---|
tagName | String |
May have a namespace prefix, such as svg:text to create a <text> element in the SVG namespace. By default, D3 supports svg, xhtml, xlink, xml and xmlns namespaces. Additional namespaces can be registered by adding to d3.ns.prefix .
|
beforeSelector | String | A selector to find the element to insert the new element before. |
- Return Type
- String
Description
For more details see https://github.com/mbostock/d3/wiki/Selections#wiki-insert.
See Also
- Selection.append(tagName)
- Selection.html(newHTML)