mySelection.datum() in D3.js

Return the data associated with the first element in the selection (if any).

Return Type
Object

Description

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

See Also