-
Book Overview & Buying
-
Table Of Contents
Learn D3.js - Second Edition
By :
Layout generators, unlike shape generators, do not create path data. They rearrange data structures for building visual structures such as trees, networks, and other complex visualizations.
The d3-shape module comes with two layout generators: a pie generator and a stack generator. Their functions are described in Table 12.1:
|
Function |
Description |
|
|
Creates a generator for stacking datasets. When called on an array of data series, the function returns a new array containing the upper and lower bounds for each entry. |
|
|
Transforms a data array into a standard array of objects containing start and end angles for each slice, which can be fed into an |
Table 12.1 – Layout generator functions that return data...