May 2019
Beginner to intermediate
650 pages
14h 50m
English
With grouping, you can convert a flat tree structure (common in CSV data files) into a hierarchical tree, grouped by selected keys. You can also group by multiple keys, therby creating multi-level hierarchies. Each object is preserved as a leaf in the hierarchy, but a rollup function can be used to reduce the leaf object to a single value.
There are grouping functions in d3-collection and d3-array, starting with version 2. This function will cover the two newer functions that are available in d3-array. To use them in the current distribution, you need to import d3-array.v2.js using NPM or using the script tag:
<script src="https://d3js.org/d3-array.v2.min.js"></script>
There are two functions listed in the following table: ...
Read now
Unlock full access