tree.size()

tree.size([size]) If size is specified, sets this tree layout’s size to the specified two-element array of numbers [width, height] and returns this tree layout. If size is not specified, returns the current layout size, which defaults to [1, 1]. A layout size of null indicates that a node size will be used instead. The coordinates x and y represent an arbitrary coordinate system; for example, to produce a radial layout, a size of [360, radius] corresponds to a breadth of 360° and a depth of

d3.interpolateRgbBasisClosed()

d3.interpolateRgbBasisClosed(colors) Returns a uniform nonrational B-spline interpolator through the specified array of colors, which are converted to RGB color space. The control points are implicitly repeated such that the resulting spline has cyclical C² continuity when repeated around t in [0,1]; this is useful, for example, to create cyclical color scales. Opacity interpolation is not currently supported. See also d3.interpolateBasisClosed, and see d3-scale-chromatic for examples.

d3.easeCubicIn()

d3.easeCubicIn(t) Cubic easing; equivalent to polyIn.exponent(3).

d3.interpolateString()

d3.interpolateString(a, b) Returns an interpolator between the two strings a and b. The string interpolator finds numbers embedded in a and b, where each number is of the form understood by JavaScript. A few examples of numbers that will be detected within a string: -1, 42, 3.14159, and 6.0221413e+23. For each number embedded in b, the interpolator will attempt to find a corresponding number in a. If a corresponding number is found, a numeric interpolator is created using interpolateNumber. T

transform.rescaleX()

transform.rescaleX(x) Returns a copy of the continuous scale x whose domain is transformed. This is implemented by first applying the inverse x-transform on the scale’s range, and then applying the inverse scale to compute the corresponding domain: function rescaleX(x) { var range = x.range().map(transform.invertX, transform), domain = range.map(x.invert, x); return x.copy().domain(domain); } The scale x must use d3.interpolateNumber; do not use continuous.rangeRound as this reduce

d3.geoNaturalEarthRaw

d3.geoNaturalEarth() d3.geoNaturalEarthRaw The Natural Earth projection.

request.abort()

request.abort() Aborts this request, if it is currently in-flight, and returns this request instance. See XMLHttpRequest’s abort.

geoproject

geoproject [options…] projection [file] Projects the GeoJSON object in the specified input file using the specified projection, outputting a new GeoJSON object with projected coordinates. For example, to project standard WGS 84 input using d3.geoAlbersUsa: geoproject 'd3.geoAlbersUsa()' us.json \ > us-albers.json For geometry that crosses the antimeridian or surrounds a pole, you will want to pass input through geostitch first: geostitch world.json \ | geoproject 'd3.geoMercator()' \

nest.entries()

nest.entries(array) Applies the nest operator to the specified array, returning an array of key-values entries. Conceptually, this is similar to applying map.entries to the associative array returned by nest.map, but it applies to every level of the hierarchy rather than just the first (outermost) level. Each entry in the returned 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 add

locale.format()

locale.format(specifier) Returns a new format function for the given string specifier. The returned function takes a number as the only argument, and returns a string representing the formatted number. The general form of a specifier is: [​[fill]align][sign][symbol][0][width][,][.precision][type] The fill can be any character. The presence of a fill character is signaled by the align character following it, which must be one of the following: > - Forces the field to be right-aligned wit