mySelection.text( newText ) in D3.js
Set the text content for elements in the selection.
Arguments
name | type | description |
---|---|---|
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
- Selection.text()
- Selection.text(func)
- Selection.html(newHTML)