Skip to content

Conversation

@cpsievert
Copy link
Collaborator

@cpsievert cpsievert commented Jan 20, 2026

Fixes #2458, #2420, #2462, #2446

🤖 Generated with Claude Code

cpsievert and others added 4 commits January 19, 2026 19:39
Cross-trace layout attributes like bargroupgap, boxgap, violinmode, etc.
are not included in the plotly.js schema's layoutAttributes but are valid
and work correctly. Added a comprehensive whitelist for bar/box/violin/
funnel/waterfall mode, gap, and groupgap attributes.

Fixes #2458

Co-Authored-By: Claude Opus 4.5 <[email protected]>
When using scale_color_manual() with custom labels, the legend entries
now correctly display the scale labels instead of the raw domain values.
This maps the trace names from the _plotlyDomain column values to their
corresponding scale labels using get_breaks() and get_labels().

Fixes #2420

Co-Authored-By: Claude Opus 4.5 <[email protected]>
NA values in trace data (e.g., from geom_line gaps between groups) now
correctly remain as NA when mapping categorical data back to ticktext
labels. Previously, which.min() on NA values returned an empty vector
which caused an indexing error.

Fixes #2462

Co-Authored-By: Claude Opus 4.5 <[email protected]>
The colorbar trace now preserves Date/POSIXct classes when computing
x/y ranges. Previously, unlist() converted Date objects to numeric
(days since epoch), which could confuse plotly.js axis handling.
Changed to use do.call(c, ...) which preserves the original class.

Fixes #2446

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@cpsievert cpsievert changed the title Fix medium-difficulty ggplotly regressions Fix ggplotly regressions Jan 20, 2026
@cpsievert cpsievert changed the title Fix ggplotly regressions fix: ggplotly() regressions Jan 20, 2026
cpsievert and others added 2 commits January 19, 2026 19:50
- Add test-issue-fixes.R with tests for #2458, #2420, #2462, #2446
- Update NEWS.md with bug fix entries

Co-Authored-By: Claude Opus 4.5 <[email protected]>
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.

Incorrect warning in layout() when using bargroupgap

2 participants