mySelection.call( func, [ arg1 ], [ arg2 ], [ … ] ) in D3.js
Invoke a function, passing the selection and returning it.
Arguments
name | type | description |
---|---|---|
func | Function |
Invoked and passed the selection (and any additional arguments); the this context is also set to the selection.
|
arg1 | Object | [optional] First argument to pass to the function. |
arg2 | Object | [optional] Second argument to pass to the function. |
… | Object | [optional] etc. |
- Return Type
- Selection
Description
For more details see https://github.com/mbostock/d3/wiki/Selections#wiki-call.
See Also
- Selection.each(func)