Skip to content

Accept integers for discrete scales - #609

Merged
thomasp85 merged 2 commits into
mainfrom
issue-239-discrete-integer
Nov 4, 2026
Merged

thomasp85 merged 2 commits into
mainfrom
issue-239-discrete-integer

Conversation

@thomasp85

Copy link
Copy Markdown
Collaborator

Fix #239

We now allow integer data to be used by discrete scales

Further, we improve the error messaging by warning about mappings dropped by the stat transform like we do in ggplot2.

For now it errors, which is different than ggplot2 but I personally prefer this

@thomasp85
thomasp85 requested a review from teunbrand November 4, 2026 09:41

@teunbrand teunbrand left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@thomasp85
thomasp85 merged commit 6cec3bb into main Nov 4, 2026
23 checks passed
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.

Integer columns mapped to fill/color are dropped by bar stat transform

2 participants