EnterSelection in D3.js
Array of placeholder items with special D3 methods.
For more information see https://github.com/mbostock/d3/wiki/Selections.
Instance Properties
name | type | description |
---|---|---|
constructor | Object | A reference to the constructor class for the current object instance. [from Object] |
length | Number | The number of items in the array. [from Array] |
prototype | Object | The prototype for a class. [from Object] |
Instance Methods
name | returns | description |
---|---|---|
append(tagName) | Selection | Create and append new elements for all the placeholder entries, returning a new selection of the created elements. |
concat([item1],[item2],[...]) | Array | Concatenates one or more items or arrays onto the current array. [from Array] |
empty() | Boolean | Test if there are any DOM elements in the selection. |
hasOwnProperty(propertyOrMethodName) | Boolean | Determines if the object/instance itself has the named property or method. [from Object] |
insert(tagName,beforeSelector) | String | Create and insert new elements before existing ones, returning a selection of the new elements. |
isPrototypeOf(instanceToTest) | Boolean | Determines if the calling object prototype is in the inheritance chain for the supplied argument. [from Object] |
join([separator]) | String | Returns a string representation of the array, separated by the delimiter of your choice. [from Array] |
node() | Element | Find the first DOM element in the selection. |
pop() | Object | Remove the last element from the array and return it. [from Array] |
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]
|
push([item1],[item2],[...]) | Number | Adds one or more elements to the end of the array, returning the new length. [from Array] |
reverse() | Array | Reverses the order of the elements in the array, and returns the array. [from Array] |
shift() | Object | Removes the first element of the array and returns it. [from Array] |
slice(start,[end]) | Array | Return a specified section of an array. [from Array] |
sort([compareFunction]) | Array | Sort the array. [from Array] |
splice(start,deleteCount,[newItem1],…) | Array | Remove a section from the array and return it; optionally inserting new values in that place. [from Array] |
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] |
unshift([newItem1],[newItem2],[...]) | Number | Insert items to the front of an array, and return the new length. [from Array] |
valueOf() | String |
Returns the internal this value of the object.
[from Object]
|