Skip to content

known keys for empty groups - #499

Merged
mbostock merged 3 commits into
mainfrom
mbostock/fix-empty-group
Aug 13, 2021
Merged

mbostock merged 3 commits into
mainfrom
mbostock/fix-empty-group

Conversation

@mbostock

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