Skip to content

known keys for empty groups #499

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

Merged
merged 3 commits into from
Aug 13, 2021
Merged

known keys for empty groups #499

merged 3 commits into from
Aug 13, 2021

Conversation

mbostock
Copy link
Member

When retaining empty bins, b[0] will be undefined. However, since the bin can only possibly contain values in the current group, we may still know what the appropriate z, fill or stroke channel should be for the empty bin, and hence can propagate it.

Needs testing, possibly optimization, and probably applies to the group transform, too.

@mbostock mbostock requested a review from Fil August 13, 2021 13:47
@mbostock mbostock marked this pull request as ready for review August 13, 2021 13:59
Fil added a commit that referenced this pull request Aug 13, 2021
@mbostock mbostock merged commit 7db9dfd into main Aug 13, 2021
@mbostock mbostock deleted the mbostock/fix-empty-group branch August 13, 2021 17:08
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