Skip to content

fix(geom_rect): draw each rectangle as its own polygon in non-linear …#1101

Merged
has2k1 merged 1 commit into
mainfrom
fix-rect-stacked-polygons
Jul 15, 2026
Merged

fix(geom_rect): draw each rectangle as its own polygon in non-linear …#1101
has2k1 merged 1 commit into
mainfrom
fix-rect-stacked-polygons

Conversation

@has2k1

@has2k1 has2k1 commented Jul 15, 2026

Copy link
Copy Markdown
Owner

In a non-linear coord, rectangles are drawn as polygons grouped by the group aesthetic. A stacked bar shares one group across its segments, so they merged into a single open path and coord.munch bent the join between consecutive rectangles into a triangular spike. Regroup into one polygon per rectangle so each is closed independently.

…coords

In a non-linear coord, rectangles are drawn as polygons grouped by the
`group` aesthetic. A stacked bar shares one group across its segments, so
they merged into a single open path and coord.munch bent the join between
consecutive rectangles into a triangular spike. Regroup into one polygon
per rectangle so each is closed independently.
@has2k1
has2k1 force-pushed the fix-rect-stacked-polygons branch from 7032e38 to 2ce6fdb Compare July 15, 2026 16:39
@has2k1
has2k1 merged commit 2ce6fdb into main Jul 15, 2026
11 checks passed
@has2k1
has2k1 deleted the fix-rect-stacked-polygons branch July 15, 2026 16:40
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.

1 participant