Skip to content
mbostock edited this page May 31, 2011 · 18 revisions

API Reference

Functions

# d3.functor(value)

If the specified value is a function, returns the specified value. Otherwise, returns a function that returns the specified value. This method is used internally as a lazy way of upcasting constant values to functions, in cases where a property may be specified either as a function or a constant. For example, many D3 layouts allow properties to be specified this way, and it simplifies the implementation if we automatically convert constant values to functions.

# d3.rebind(object, method)

Events

# d3.dispatch(types…)

# dispatch.add(listener)

# dispatch.remove(listener)

# dispatch.dispatch(arguments…)

Clone this wiki locally