quantize()

quantize(value) Given a value in the input domain, returns the corresponding value in the output range. For example, to apply a color encoding: var color = d3.scaleQuantize() .domain([0, 1]) .range(["brown", "steelblue"]); color(0.49); // "brown" color(0.51); // "steelblue" Or dividing the domain into three equally-sized parts with different range values to compute an appropriate stroke width: var width = d3.scaleQuantize() .domain([10, 100]) .range([1, 2, 4]); width(20); /

partition.size()

partition.size([size]) If size is specified, sets this partition layout’s size to the specified two-element array of numbers [width, height] and returns this partition layout. If size is not specified, returns the current size, which defaults to [1, 1].

circle()

circle(arguments…) Returns a new GeoJSON geometry object of type “Polygon” approximating a circle on the surface of a sphere, with the current center, radius and precision. Any arguments are passed to the accessors.

circle.radius()

circle.radius([radius]) If radius is specified, sets the circle radius to the specified angle in degrees, and returns this circle generator. The radius may also be specified as a function; this function will be invoked whenever a circle is generated, being passed any arguments passed to the circle generator. If radius is not specified, returns the current radius accessor, which defaults to: function radius() { return 90; }

interval.count()

interval.count(start, end) Returns the number of interval boundaries after start (exclusive) and before or equal to end (inclusive). Note that this behavior is slightly different than interval.range because its purpose is to return the zero-based number of the specified end date relative to the specified start date. For example, to compute the current zero-based day-of-year number: var now = new Date; d3.timeDay.count(d3.timeYear(now), now); // 177 Likewise, to compute the current zero-based

d3.scaleOrdinal()

d3.scaleOrdinal([range]) Constructs a new ordinal scale with an empty domain and the specified range. If a range is not specified, it defaults to the empty array; an ordinal scale always returns undefined until a non-empty range is defined.

d3.schemePuRd

d3.interpolatePuRd(t) d3.schemePuRd Given a number t in the range [0,1], returns the corresponding color from the “PuRd” sequential color scheme represented as an RGB string.

radialArea()

radialArea(data) Equivalent to area.

d3.geoMtFlatPolarSinusoidalRaw

d3.geoMtFlatPolarSinusoidal() d3.geoMtFlatPolarSinusoidalRaw The McBryde–Thomas flat-polar sinusoidal equal-area projection.

d3.timerFlush()

d3.timerFlush() Immediately invoke any eligible timer callbacks. Note that zero-delay timers are normally first executed after one frame (~17ms). This can cause a brief flicker because the browser renders the page twice: once at the end of the first event loop, then again immediately on the first timer callback. By flushing the timer queue at the end of the first event loop, you can run any zero-delay timers immediately and avoid the flicker.