uwgraphics / d3-twodim

A D3.v3.js module for creating 2D representations of data
http://uwgraphics.github.io/d3-twodim/
BSD 3-Clause "New" or "Revised" License
14 stars 9 forks source link

Group points by arbitrary function #15

Closed yelper closed 8 years ago

yelper commented 8 years ago

Currently, d3-twodim only allows selecting a groupColumn, which then determines which group to drop people into.

Add the ability to specify an arbitrary function to categorize points.

yelper commented 8 years ago

twoDimFactory.setGroupColumn() already takes an arbitrary function, added a shorthand setGroupField() function to just specify a field name as a grouping field.