d3-hexbin
d3-hexbin copied to clipboard
bin(point)?
hexbin.bin(point) returns the bin that corresponds to the point, without adding the point.
When the bin is empty, we return an empty array with (x,y) properties.
But (partly because of that, and also because of rebin()), one must not trust that bin to stay up-to-date with additions and removals of points.