selection.classed()

selection.classed(names[, value]) If a value is specified, assigns or unassigns the specified CSS class names on the selected elements by setting the class attribute or modifying the classList property and returns this selection. The specified names is a string of space-separated class names. For example, to assign the classes foo and bar to the selected elements: selection.classed("foo bar", true); If the value is truthy, then all elements are assigned the specified classes; otherwise, the

selection.attrs()

selection.attrs(values) A convenience method on top of selection.attr for setting multiple attributes. If the specified values is an object, the values may be specified either as strings or functions. For example: selection.attrs({foo: "foo-value", bar: function(d) { return d.bar; }}); If a value is a constant, all elements are given the same attribute value; otherwise, if a value is a function, the function is evaluated for each selected element, in order, being passed the current datum (d),

tree()

tree(root) Lays out the specified root hierarchy, assigning the following properties on root and its descendants: node.x - the x-coordinate of the node node.y - the y-coordinate of the node The coordinates x and y represent an arbitrary coordinate system; for example, you can treat x as an angle and y as a radius to produce a radial layout. You may want to call root.sort before passing the hierarchy to the tree layout.

d3.geoConicConformal()

d3.geoConicConformal() d3.geoConicConformalRaw(phi0, phi1) The conic conformal projection. The parallels default to [30°, 30°] resulting in flat top. See also conic.parallels.

partition.padding()

partition.padding([padding]) If padding is specified, sets the padding to the specified number and returns this partition layout. If padding is not specified, returns the current padding, which defaults to zero. The padding is used to separate a node’s adjacent children.

interval.floor()

interval.floor(date) Returns a new date representing the latest interval boundary date before or equal to date. For example, timeDay.floor(date) typically returns 12:00 AM local time on the given date. This method is idempotent: if the specified date is already floored to the current interval, a new date with an identical time is returned. Furthermore, the returned date is the minimum expressible value of the associated interval, such that interval.floor(interval.floor(date) - 1) returns the

d3.geoGinzburg9Raw

d3.geoGinzburg9() d3.geoGinzburg9Raw The Ginzburg IX projection.

d3.timeInterval()

d3.timeInterval(floor, offset[, count[, field]]) Constructs a new custom interval given the specified floor and offset functions and an optional count function. The floor function takes a single date as an argument and rounds it down to the nearest interval boundary. The offset function takes a date and an integer step as arguments and advances the specified date by the specified number of boundaries; the step may be positive, negative or zero. The optional count function takes a start date a

d3.hcl()

d3.hcl(h, c, l[, opacity]) d3.hcl(specifier) d3.hcl(color) Constructs a new HCL color. The channel values are exposed as h, c and l properties on the returned instance. Use the HCL color picker to explore this color space. If h, c and l are specified, these represent the channel values of the returned color; an opacity may also be specified. If a CSS Color Module Level 3 specifier string is specified, it is parsed and then converted to the HCL color space. See color for examples. If a color

d3.forceSimulation()

d3.forceSimulation([nodes]) Creates a new simulation with the specified array of nodes and no forces. If nodes is not specified, it defaults to the empty array. The simulator starts automatically; use simulation.on to listen for tick events as the simulation runs. If you wish to run the simulation manually instead, call simulation.stop, and then call simulation.tick as desired.