myTransition.attr( name, value ) in D3.js
Transition an attribute to a value.
Arguments
name | type | description |
---|---|---|
name | String | Name of the attribute to transition. |
value | String |
Non-string values (e.g. a number like 10 ) are coerced to strings before setting.
|
- Return Type
- Transition
Description
For more details see https://github.com/mbostock/d3/wiki/Transitions#wiki-attr.
See Also
- Transition.attr(name,func)
- Selection.attr(name,value)