mySelection.attr( name ) in D3.js

Get attribute value.

Arguments

nametypedescription
name String
Return Type
Selection

Description

For more details see https://github.com/mbostock/d3/wiki/Selections#wiki-attr.

See Also