tile.size()

tile.size([size]) If size is specified, sets this tile layout’s size to the specified two-element array of numbers [width, height] and returns this tile layout. If size is not specified, returns the current layout size. This is a convenience method equivalent to setting the extent to [[0, 0], [width, height]].

selection.transition()

selection.transition([name]) Returns a new transition on the given selection with the specified name. If a name is not specified, null is used. The new transition is only exclusive with other transitions of the same name. If the name is a transition instance, the returned transition has the same id and name as the specified transition. If a transition with the same id already exists on a selected element, the existing transition is returned for that element. Otherwise, the timing of the retu

simulation.alphaDecay()

simulation.alphaDecay([decay]) If decay is specified, sets the alpha decay rate to the specified number in the range [0,1] and returns this simulation. If decay is not specified, returns the current alpha decay rate, which defaults to 0.0228… = 1 - pow(0.001, 1 / 300) where 0.001 is the default minimum alpha. The alpha decay rate determines how quickly the current alpha interpolates towards the desired target alpha; since the default target alpha is zero, by default this controls how quickly

nest.sortValues()

nest.sortValues(comparator) Sorts leaf elements using the specified comparator function, such as d3.ascending or d3.descending. This is roughly equivalent to sorting the input array before applying the nest operator; however it is typically more efficient as the size of each group is smaller. If no value comparator is specified, elements will be returned in the order they appeared in the input array. This applies to nest.map, nest.entries and nest.object.

d3.color()

d3.color(specifier) Parses the specified CSS Color Module Level 3 specifier string, returning an RGB or HSL color. If the specifier was not valid, null is returned. Some examples: rgb(255, 255, 255) rgb(10%, 20%, 30%) rgba(255, 255, 255, 0.4) rgba(10%, 20%, 30%, 0.4) hsl(120, 50%, 20%) hsla(120, 50%, 20%, 0.4) #ffeeaa #fea steelblue The list of supported named colors is specified by CSS. Note: this function may also be used with instanceof to test if an object is a color instance. The same

interval.filter()

interval.filter(test) Returns a new interval that is a filtered subset of this interval using the specified test function. The test function is passed a date and should return true if and only if the specified date should be considered part of the interval. For example, to create an interval that returns the 1st, 11th, 21th and 31th (if it exists) of each month: var i = d3.timeDay.filter(function(d) { return (d.getDate() - 1) % 10 === 0; }); The returned filtered interval does not support co

d3.ticks()

d3.ticks(start, stop, count) Returns an array of approximately count + 1 uniformly-spaced, nicely-rounded values between start and stop (inclusive). Each value is a power of ten multiplied by 1, 2 or 5. See also tickStep and linear.ticks. Note that due to the limited precision of IEEE 754 floating point, the returned values may not be exact decimals; use d3-format to format numbers for human consumption. Ticks are inclusive in the sense that they may include the specified start and stop value

transition.attrs()

transition.attrs(values) Like selection.attrs, but for transition.attr.

nest.object()

nest.object(array) Applies the nest operator to the specified array, returning a nested object. Each entry in the returned associative array corresponds to a distinct key value returned by the first key function. The entry value depends on the number of registered key functions: if there is an additional key, the value is another associative array; otherwise, the value is the array of elements filtered from the input array that have the given key value. Note: this method is unsafe if any of

arc.centroid()

arc.centroid(arguments…) Computes the midpoint [x, y] of the center line of the arc that would be generated by the given arguments. The arguments are arbitrary; they are simply propagated to the arc generator’s accessor functions along with the this object. To be consistent with the generated arc, the accessors must be deterministic, i.e., return the same value given the same arguments. The midpoint is defined as (startAngle + endAngle) / 2 and (innerRadius + outerRadius) / 2. For example: