block by eesur 3d5ba68f4457cdd29714

d3 | lodash groupBy float numbers

Full Screen

Grouping an array using lodash _.groupBy.

Creates an object composed of keys generated from the results of running each element of collection through iteratee. The corresponding value of each key is an array of the elements responsible for generating the key. The iteratee is bound to thisArg and invoked with three arguments: (value, index|key, collection).

index.html

d3_code_lodash_groupby.js

main.css