Skip to content

z hexbins#810

Closed
Fil wants to merge 14 commits into
mbostock/reinitializefrom
fil/reinitialize-sort-hex-bins-plus-z
Closed

z hexbins#810
Fil wants to merge 14 commits into
mbostock/reinitializefrom
fil/reinitialize-sort-hex-bins-plus-z

Conversation

@Fil
Copy link
Copy Markdown
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

Comment thread src/marks/hexgrid.js Outdated
@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
Copy Markdown
Member

mbostock commented May 7, 2022

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

@mbostock mbostock closed this May 7, 2022
Comment thread src/transforms/hexbin.js
Comment on lines +45 to +46
X = X.value.map(x);
Y = Y.value.map(y);
Copy link
Copy Markdown
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