d3/d3-collection

ES6 Collections.

mbostock opened this issue · 2 comments

What would d3-collection look like if we dropped the d3.map and d3.set implementations? You might still want a d3.map with a key accessor for constructing a Map from an array of data (the key would default to index if not specified, and perhaps #10 you’d also allow an optional value accessor), and a d3.set with an optional accessor.

Related to this, d3.nest’s keys would no longer be coerced to strings.

Likewise, we might change ordinal scales to not coerce the domain to strings.

Moving to d3/d3-array#75.