|D3.JS 6 Adds Iterable Support|
|Written by Kay Ewbank|
|Tuesday, 01 September 2020|
This release has adopted ES2015, including support for iterables and collections (Map and Set). ES2015 added the iterable protocol so that objects can be made iterable and capable of being used in a for...of loop. It also introduced new data structures including Map and Set. Maps are collections of keys and values of any type, while Sets are ordered lists of values that contain no duplicates. Instead of being indexed like arrays are, sets are accessed using keys.
Alongside the iterables and collections support, new aggregate functions have been added to replace d3.nest. The new functions are d3.group and d3.rollup, and the developers say they work well with d3-hierarchy and d3-selection. New helpers have been added to d3-array, too, including d3.greatest, d3.quickselect, and d3.fsum.
Other function improvements include an expanded d3-random that includes a fast linear congruential generator for seeded randomness; d3-chord has new layouts for directed and transposed chord diagrams; and d3-scale adds a new radial scale type.
Finally, more than 450 examples have been updated to D3 v6.
or email your comment to: email@example.com
|Last Updated ( Tuesday, 01 September 2020 )|