sequential.clamp()

sequential.clamp([clamp]) See continuous.clamp.

continuous.nice()

continuous.nice([count]) Extends the domain so that it starts and ends on nice round values. This method typically modifies the scale’s domain, and may only extend the bounds to the nearest round value. An optional tick count argument allows greater control over the step size used to extend the bounds, guaranteeing that the returned ticks will exactly cover the domain. Nicing is useful if the domain is computed from data, say using extent, and may be irregular. For example, for a domain of [

graticule.extent()

graticule.extent([extent]) If extent is specified, sets the major and minor extents of this graticule. If extent is not specified, returns the current minor extent, which defaults to ⟨⟨-180°, -80° - ε⟩, ⟨180°, 80° + ε⟩⟩.

color.toString()

color.toString() Returns a string representing this color according to the CSS Object Model specification, such as rgb(247, 234, 186). If this color is not displayable, a suitable displayable color is returned instead. For example, RGB channel values greater than 255 are clamped to 255.

selection.call()

selection.call(function[, arguments…]) Invokes the specified function exactly once, passing in this selection along with any optional arguments. Returns this selection. This is equivalent to invoking the function by hand but facilitates method chaining. For example, to set several styles in a reusable function: function name(selection, first, last) { selection .attr("first-name", first) .attr("last-name", last); } Now say: d3.selectAll("div").call(name, "John", "Snow"); This is

continuous.tickFormat()

continuous.tickFormat([count[, specifier]]) Returns a number format function suitable for displaying a tick value, automatically computing the appropriate precision based on the fixed interval between tick values. The specified count should have the same value as the count that is used to generate the tick values. An optional specifier allows a custom format where the precision of the format is automatically set by the scale as appropriate for the tick interval. For example, to format percen

axis.tickFormat()

axis.tickFormat([format]) If format is specified, sets the tick format function and returns the axis. If format is not specified, returns the current format function, which defaults to null. A null format indicates that the scale’s default formatter should be used, which is generated by calling scale.tickFormat. In this case, the arguments specified by axis.tickArguments are likewise passed to scale.tickFormat. See d3-format and d3-time-format for help creating formatters. For example, to di

arc.padAngle()

arc.padAngle([angle]) If angle is specified, sets the pad angle to the specified function or number and returns this arc generator. If angle is not specified, returns the current pad angle accessor, which defaults to: function padAngle() { return d && d.padAngle; } The pad angle is converted to a fixed linear distance separating adjacent arcs, defined as padRadius * padAngle. This distance is subtracted equally from the start and end of the arc. If the arc forms a complete circle o

link.strength()

link.strength([strength]) If strength is specified, sets the strength accessor to the specified number or function, re-evaluates the strength accessor for each link, and returns this force. If strength is not specified, returns the current strength accessor, which defaults to: function strength(link) { return 1 / Math.min(count(link.source), count(link.target)); } Where count(node) is a function that returns the number of links with the given node as a source or target. This default was ch

d3.hierarchy()

d3.hierarchy(data[, children]) Constructs a root node from the specified hierarchical data. The specified data must be an object representing the root node. For example: { "name": "Eve", "children": [ { "name": "Cain" }, { "name": "Seth", "children": [ { "name": "Enos" }, { "name": "Noam" } ] }, { "name": "Abel" }, { "name": "Awan", "children": [ { "n