dispatch.on()

dispatch.on(typenames[, callback]) Adds, removes or gets the callback for the specified typenames. If a callback function is specified, it is registered for the specified (fully-qualified) typenames. If a callback was already registered for the given typenames, the existing callback is removed before the new callback is added. The specified typenames is a string, such as start or end.foo. The type may be optionally followed by a period (.) and a name; the optional name allows multiple callba

projection.translate()

projection.translate([translate]) If translate is specified, sets the projection’s translation offset to the specified two-element array [tx, ty] and returns the projection. If translate is not specified, returns the current translation offset which defaults to [480, 250]. The translation offset determines the pixel coordinates of the projection’s center. The default translation offset places ⟨0°,0°⟩ at the center of a 960×500 area.

d3.geoRotation()

d3.geoRotation(angles) Returns a rotation function for the given angles, which must be a two- or three-element array of numbers [lambda, phi, gamma] specifying the rotation angles in degrees about each spherical axis. (These correspond to yaw, pitch and roll.) If the rotation angle gamma is omitted, it defaults to 0. See also projection.rotate.

d3.tsv()

d3.tsv(url[[, row], callback]) Creates a request for the TSV file at the specified url with the default mime type text/tab-separated-values. An optional row conversion function may be specified to map and filter row objects to a more-specific representation; see dsv.parse for details. For example: function row(d) { return { year: new Date(+d.Year, 0, 1), // convert "Year" column to Date make: d.Make, model: d.Model, length: +d.Length // convert "Length" column to number };

sequential.domain()

sequential.domain([domain]) See continuous.domain. Note that a sequential scale’s domain must be numeric and must contain exactly two values.

d3.request()

d3.request(url[, callback]) Returns a new asynchronous request for specified url. If no callback is specified, the request is not yet sent and can be further configured. If a callback is specified, it is equivalent to calling request.get immediately after construction: d3.request(url) .get(callback); Note: if you wish to specify a request header or a mime type, you must not specify a callback to the constructor. Use request.header or request.mimeType followed by request.get instead.

d3.geoAlbersUsa()

d3.geoAlbersUsa() This is a U.S.-centric composite projection of three d3.geoConicEqualArea projections: d3.geoAlbers is used for the lower forty-eight states, and separate conic equal-area projections are used for Alaska and Hawaii. Note that the scale for Alaska is diminished: it is projected at 0.35× its true relative area. This diagram by Philippe Rivière illustrates how this projection uses two rectangular insets for Alaska and Hawaii: See d3-composite-projections for more examples.

request.mimeType()

request.mimeType([type]) If type is specified, sets the request mime type to the specified value and returns this request instance. If type is null, clears the current mime type (if any) instead. If type is not specified, returns the current mime type, which defaults to null. The mime type is used to both set the "Accept" request header and for overrideMimeType, where supported. The request mime type can only be modified before the request is sent. Therefore, you cannot pass a callback to th

d3.transition()

d3.transition([name]) Returns a new transition on the root element, document.documentElement, 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. The name may also be a transition instance; see selection.transition. This method is equivalent to: d3.selection() .transition(name) This function can also be used to test for transitions (instanceof d3.transition) or to extend the transition prototype.

d3.geoTwoPointAzimuthalRaw()

d3.geoTwoPointAzimuthal(point0, point1) d3.geoTwoPointAzimuthalRaw(d) The two-point azimuthal projection “shows correct azimuths (but not distances) from either of two points to any other point. [It can] be used to locate a ship at sea, given the exact location of two radio transmitters and the direction of the ship to the transmitters.” This projection does not support projection.rotate, as the rotation is fixed by the two given points.