mySelection.remove() in D3.js

Remove all elements in the selection from the document; returns the selection.

Return Type
Selection

Description

For more details see https://github.com/mbostock/d3/wiki/Selections#wiki-remove.

See Also