myTransition.text( text ) in D3.js

Set the text contents to a new value at the start of the transition.

Arguments

nametypedescription
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