myTransition.text( text ) in D3.js
Set the text contents to a new value at the start of the transition.
Arguments
name | type | description |
---|---|---|
text | String |
The new text contents; a null value will clear the content.
|
- Return Type
- Transition
Description
For more details see https://github.com/mbostock/d3/wiki/Transitions#wiki-text.
See Also
- Transition.text(func)
- Selection.text(newText)