d3.pack()

d3.pack() Creates a new pack layout with the default settings.

d3.packEnclose()

d3.packEnclose(circles) Computes the smallest circle that encloses the specified array of circles, each of which must have a circle.r property specifying the circle’s radius, and circle.x and circle.y properties specifying the circle’s center. The enclosing circle is computed using Welzl’s algorithm adapted to enclose circles rather than points. (See also Apollonius’ Problem.)

d3.namespaces

d3.namespaces The map of registered namespace prefixes. The initial value is: { svg: "http://www.w3.org/2000/svg", xhtml: "http://www.w3.org/1999/xhtml", xlink: "http://www.w3.org/1999/xlink", xml: "http://www.w3.org/XML/1998/namespace", xmlns: "http://www.w3.org/2000/xmlns/" } Additional prefixes may be assigned as needed to create elements or attributes in other namespaces.

d3.mouse()

d3.mouse(container) Returns the x and y coordinates of the current event relative to the specified container. The container may be an HTML or SVG container element, such as a G element or an SVG element. The coordinates are returned as a two-element array of numbers [x, y].

d3.median()

d3.median(array[, accessor]) Returns the median of the given array of numbers using the R-7 method. If the array is empty, returns undefined. An optional accessor function may be specified, which is equivalent to calling array.map(accessor) before computing the median. This method ignores undefined and NaN values; this is useful for ignoring missing data.

d3.merge()

d3.merge(arrays) Merges the specified arrays into a single array. This method is similar to the built-in array concat method; the only difference is that it is more convenient when you have an array of arrays. d3.merge([[1], [2, 3]]); // returns [1, 2, 3]

d3.namespace()

d3.namespace(name) Qualifies the specified name, which may or may not have a namespace prefix. If the name contains a colon (:), the substring before the colon is interpreted as the namespace prefix, which must be registered in d3.namespaces. Returns an object space and local attributes describing the full namespace URL and the local name. For example: d3.namespace("svg:text"); // {space: "http://www.w3.org/2000/svg", local: "text"} If the name does not contain a colon, this function merely r

d3.min()

d3.min(array[, accessor]) Returns the minimum value in the given array using natural order. If the array is empty, returns undefined. An optional accessor function may be specified, which is equivalent to calling array.map(accessor) before computing the minimum value. Unlike the built-in Math.min, this method ignores undefined, null and NaN values; this is useful for ignoring missing data. In addition, elements are compared using natural order rather than numeric order. For example, the minim

d3.mean()

d3.mean(array[, accessor]) Returns the mean of the given array of numbers. If the array is empty, returns undefined. An optional accessor function may be specified, which is equivalent to calling array.map(accessor) before computing the mean. This method ignores undefined and NaN values; this is useful for ignoring missing data.

d3.matcher()

d3.matcher(selector) Given the specified selector, returns a function which returns true if this element matches the specified selector. This method is used internally by selection.filter. For example, this: var div = selection.filter("div"); Is equivalent to: var div = selection.filter(d3.matcher("div")); (Although D3 is not a compatibility layer, this implementation does support vendor-prefixed implementations due to the recent standardization of element.matches.)