mySelection.datum( value ) in D3.js
Set the data associated with elements in the selection.
Arguments
name | type | description |
---|---|---|
value | Object | May be any JavaScript object (number, array, string, DOM element, etc.) |
- Return Type
- Selection
Description
For more details see https://github.com/mbostock/d3/wiki/Selections#wiki-datum.
See Also
- Selection.datum()
- Selection.datum(func)