axis.ticks()

axis.ticks(arguments…) axis.ticks([count[, specifier]]) axis.ticks([interval[, specifier]]) Sets the arguments that will be passed to scale.ticks and scale.tickFormat when the axis is rendered, and returns the axis generator. The meaning of the arguments depends on the axis’ scale type: most commonly, the arguments are a suggested count for the number of ticks (or a time interval for time scales), and an optional format specifier to customize how the tick values are formatted. For example, to

diagram

diagram The computed Voronoi diagram returned by voronoi has the following properties: edges - an array of edges. cells - an array of cells, one per input point; a cell may be null for a coincident point.

link.id()

link.id([id]) If id is specified, sets the node id accessor to the specified function and returns this force. If id is not specified, returns the current node id accessor, which defaults to the numeric node.index: function id(d) { return d.index; } The default id accessor allows each link’s source and target to be specified as a zero-based index into the nodes array. For example: var nodes = [ {"id": "Alice"}, {"id": "Bob"}, {"id": "Carol"} ]; var links = [ {"source": 0, "target":

d3.geoInterrupt()

d3.geoInterrupt(project, lobes) Defines a new interrupted projection for the specified raw projection function project and the specified array of lobes. The array lobes contains two elements representing the hemilobes for the northern hemisphere and the southern hemisphere, respectively. Each hemilobe is an array of triangles, with each triangle represented as three points (in degrees): the start, midpoint, and end. For example, the lobes in Goode’s interrupted homolosine projection are defin

d3.utcHours()

d3.timeHours(start, stop[, step]) d3.utcHours(start, stop[, step]) Aliases for timeHour.range and utcHour.range.

d3.schemeOranges

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

d3.formatDefaultLocale()

d3.formatDefaultLocale(definition) Equivalent to d3.formatLocale, except it also redefines d3.format and d3.formatPrefix to the new locale’s locale.format and locale.formatPrefix. If you do not set a default locale, it defaults to U.S. English.

locale.utcParse()

locale.utcParse(specifier) Equivalent to locale.parse, except all directives are interpreted as Coordinated Universal Time (UTC) rather than local time.

symbol.context()

symbol.context([context]) If context is specified, sets the context and returns this symbol generator. If context is not specified, returns the current context, which defaults to null. If the context is not null, then the generated symbol is rendered to this context as a sequence of path method calls. Otherwise, a path data string representing the generated symbol is returned.

locale.format()

locale.format(specifier) Returns a new formatter for the given string specifier. The specifier string may contain the following directives: %a - abbreviated weekday name.* %A - full weekday name.* %b - abbreviated month name.* %B - full month name.* %c - the locale’s date and time, such as %x, %X.* %d - zero-padded day of the month as a decimal number [01,31]. %e - space-padded day of the month as a decimal number [ 1,31]; equivalent to %_d. %H - hour (24-hour clock) as a decimal num