mySelection.text( newText ) in D3.js

Set the text content for elements in the selection.

Arguments

nametypedescription
newText String If this parameter is not a string it is forced to one.
Return Type
Selection

Description

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

See Also