d3 in D3.js

D3.js namespace object, providing bootstrapping and common methods.

For more information see https://github.com/mbostock/d3/wiki/API-Reference.

Inherits from:

Self Properties

name type description
event Event (read only) The current event (if any). Used for handling events during a callback invoked selection.on().
version String The version number of D3 being run.

Self Methods

name returns description
ease(easingType,[easeParam1],[easeParam2]) Function Retrieve a predefined easing function.
mouse(container) Array Find x,y coordinates of the current mouse event relative to a container element.
select(node) Selection Select an element from the current document.
select(selector) Selection Select an element from the current document.
selectAll(selector) Selection Select multiple elements from the current document.
selectAll(nodes) Selection Select multiple elements from the current document.
touches(container) Array Find multiple x,y coordinates of the current touch events relative to a container element.
transition(selection) Transition Start an animated transition.

Instance Properties

name type description
constructor Object A reference to the constructor class for the current object instance. [from Object]
prototype Object The prototype for a class. [from Object]

Instance Methods

name returns description
hasOwnProperty(propertyOrMethodName) Boolean Determines if the object/instance itself has the named property or method. [from Object]
isPrototypeOf(instanceToTest) Boolean Determines if the calling object prototype is in the inheritance chain for the supplied argument. [from Object]
propertyIsEnumerable(propertyOrMethodName) Boolean Determines if the object/instance itself has a property or method of the supplied name which will appear in a for (prop in obj) enumeration. [from Object]
toLocaleString() String For most objects, the same as toString() unless explicitly overridden. [from Object]
toString() String Returns a string representation of the object. [from Object]
valueOf() String Returns the internal this value of the object. [from Object]