geo2svg

geo2svg [options…] [file] Converts the specified GeoJSON file to SVG. With --newline-delimited, each input feature is rendered as a separate path element; otherwise, a single path element is generated. By default, the SVG’s fill is set to none and the stroke is set to black. To override these values on a per-feature basis, the following GeoJSON feature properties will be propagated to attributes: fill fill-rule (or fillRule) fill-opacity (or fillOpacity) stroke stroke-width (or strokeWidth)

geograticule

geograticule [options…] Generates a GeoJSON graticule. See also d3.geoGraticule.

force()

force(alpha) Applies this force, optionally observing the specified alpha. Typically, the force is applied to the array of nodes previously passed to force.initialize, however, some forces may apply to a subset of nodes, or behave differently. For example, d3.forceLink applies to the source and target of each link.

force.initialize()

force.initialize(nodes) Assigns the array of nodes to this force. This method is called when a force is bound to a simulation via simulation.force and when the simulation’s nodes change via simulation.nodes. A force may perform necessary work during initialization, such as evaluating per-node parameters, to avoid repeatedly performing work during each application of the force.

edge

edge Each edge in the diagram is an array [[x0, y0], [x1, y1]] with two additional properties: left - the site on the left side of the edge. right - the site on the right side of the edge; null for a clipped border edge.

event.on()

event.on(typenames, [listener]) Equivalent to drag.on, but only applies to the current drag gesture. Before the drag gesture starts, a copy of the current drag event listeners is made. This copy is bound to the current drag gesture and modified by event.on. This is useful for temporary listeners that only receive events for the current drag gesture. For example, this start event listener registers temporary drag and end event listeners as closures: function started() { var circle = d3.sele

elastic.period()

elastic.period(p) Returns a new elastic easing with the specified period p.

elastic.amplitude()

elastic.amplitude(a) Returns a new elastic easing with the specified amplitude a.

ease()

ease(t) Given the specified normalized time t, typically in the range [0,1], returns the “eased” time tʹ, also typically in [0,1]. 0 represents the start of the animation and 1 represents the end. A good implementation returns 0 if t = 0 and 1 if t = 1. See the easing explorer for a visual demonstration. For example, to apply cubic easing: var te = d3.easeCubic(t); Similarly, to apply custom elastic easing: // Before the animation starts, create your easing function. var customElastic = d3.eas

dsv.parseRows()

dsv.parseRows(string[, row]) Parses the specified string, which must be in the delimiter-separated values format with the appropriate delimiter, returning an array of arrays representing the parsed rows. Unlike dsv.parse, this method treats the header line as a standard row, and should be used whenever DSV content does not contain a header. Each row is represented as an array rather than an object. Rows may have variable length. For example, consider the following CSV file, which notably lac