Skip to content
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

fix hexbin default stroke #1641

Merged
merged 1 commit into from
May 26, 2023
Merged

Conversation

mbostock
Copy link
Member

@mbostock mbostock commented May 26, 2023

Fixes the default stroke option declared by the hexbin transform. Instead of declaring a default stroke (which was wrong in the case of the tip mark—it’s the only mark with both a default fill and a default stroke), it now declares an initially-empty fill channel. This allows the mark constructor to know that a fill channel will be populated by the initializer, and hence chose the correct default stroke.

Before:
Screenshot 2023-05-26 at 8 37 34 AM

After:
Screenshot 2023-05-26 at 8 36 45 AM

@mbostock mbostock requested a review from Fil May 26, 2023 15:36
@mbostock mbostock force-pushed the mbostock/better-hexbin-default-stroke branch from 9605805 to c9d59a0 Compare May 26, 2023 15:40
Copy link
Contributor

@Fil Fil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love the attention to details!

Copy link
Contributor

@Fil Fil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love the attention to details!

@mbostock mbostock merged commit 14ce030 into main May 26, 2023
@mbostock mbostock deleted the mbostock/better-hexbin-default-stroke branch May 26, 2023 18:02
chaichontat pushed a commit to chaichontat/plot that referenced this pull request Jan 14, 2024
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