Skip to content

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

Closed
Closed

Conversation

Fil
Copy link
Contributor

@Fil Fil commented Mar 16, 2022

(includes the sort by r branch #808)

inlines an optimized version of hexbin

Capture d’écran 2022-03-16 à 13 51 15

@Fil Fil force-pushed the fil/reinitialize-sort-hex-bins-plus-z branch from a18c3e8 to 634bab9 Compare March 24, 2022 13:36
group by z
inline hexbin
binWidth is the distance between two centers

(rebased on mbostock/reinitialize)
@Fil Fil force-pushed the fil/reinitialize-sort-hex-bins-plus-z branch from 73d764e to 526375e Compare March 24, 2022 13:46
@Fil Fil mentioned this pull request Mar 24, 2022
@mbostock mbostock force-pushed the mbostock/reinitialize branch 2 times, most recently from b305131 to 886615b Compare May 4, 2022 22:26
@mbostock
Copy link
Member

mbostock commented May 7, 2022

Merged into #823, which was merged into #801.

@mbostock mbostock closed this May 7, 2022
Comment on lines +45 to +46
X = X.value.map(x);
Y = Y.value.map(y);
Copy link
Member

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).

@Fil Fil deleted the fil/reinitialize-sort-hex-bins-plus-z branch April 5, 2023 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants