mySelection.attr( name ) in D3.js
Get attribute value.
Arguments
name | type | description |
---|---|---|
name | String |
- Return Type
- Selection
Description
For more details see https://github.com/mbostock/d3/wiki/Selections#wiki-attr.
See Also
- Selection.attr(name,value)
- Selection.attr(name,func)