-
Notifications
You must be signed in to change notification settings - Fork 185
z hexbins #810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
z hexbins #810
Conversation
a18c3e8
to
634bab9
Compare
group by z inline hexbin binWidth is the distance between two centers (rebased on mbostock/reinitialize)
73d764e
to
526375e
Compare
b305131
to
886615b
Compare
X = X.value.map(x); | ||
Y = Y.value.map(y); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It isn’t safe to use X.value.map here because array.map returns the same type of array which may be a typed array such as Uint8Array. Or to put it another way, X.value is in data space, whereas the result of applying the x scale is in screen space and can be any number (such as Float64Array).
(includes the sort by r branch #808)
inlines an optimized version of hexbin