voronoi.polygons()

voronoi.polygons(data) Returns an array of polygons, one for each input point in the specified data points, corresponding to the cells in the computed Voronoi diagram. Equivalent to: voronoi(data).polygons(); See diagram.polygons for more detail. Note: an extent is required.

voronoi.links()

voronoi.links(data) Returns the Delaunay triangulation of the specified data array as an array of links. Each link has source and target attributes referring to elements in data. Equivalent to: voronoi(data).links(); See diagram.links for more detail.

voronoi.extent()

voronoi.extent([extent]) If extent is specified, sets the clip extent of the Voronoi layout to the specified bounds and returns the layout. The extent bounds are specified as an array [[x0, y0], [x1, y1]], where x0 is the left side of the extent, y0 is the top, x1 is the right and y1 is the bottom. If extent is not specified, returns the current clip extent which defaults to null. A clip extent is required when using voronoi.polygons.

voronoi()

voronoi(data) Computes the Voronoi diagram for the specified data points.

tsv2json

tsv2json [options…] [file] Equivalent to dsv2json, but the input delimiter defaults to the tab character (\t).

tsv2csv

tsv2csv [options…] [file] Equivalent to dsv2dsv, but the input delimiter defaults to the tab character (\t).

treemap.tile()

treemap.tile([tile]) If tile is specified, sets the tiling method to the specified function and returns this treemap layout. If tile is not specified, returns the current tiling method, which defaults to d3.treemapSquarify with the golden ratio.

treemap.size()

treemap.size([size]) If size is specified, sets this treemap layout’s size to the specified two-element array of numbers [width, height] and returns this treemap layout. If size is not specified, returns the current size, which defaults to [1, 1].

treemap.round()

treemap.round([round]) If round is specified, enables or disables rounding according to the given boolean and returns this treemap layout. If round is not specified, returns the current rounding state, which defaults to false.

treemap.paddingTop()

treemap.paddingTop([padding]) If padding is specified, sets the top padding to the specified number or function and returns this treemap layout. If padding is not specified, returns the current top padding function, which defaults to the constant zero. If padding is a function, it is invoked for each node with children, being passed the current node. The top padding is used to separate the top edge of a node from its children.