Skip to content

Preserve connected paths with varying tooltips - #2510

Open
M-Colley wants to merge 1 commit into
plotly:masterfrom
M-Colley:fix/path-tooltip-groups
Open

M-Colley wants to merge 1 commit into
plotly:masterfrom
M-Colley:fix/path-tooltip-groups

Conversation

@M-Colley

@M-Colley M-Colley commented Dec 4, 2026

Copy link
Copy Markdown

Summary

Build implicit line and path groups without the hover text aesthetic. Keep each point's tooltip, explicit groups, and grouping from other discrete aesthetics such as colour.

Fixes #2502.

Evidence

  • The four-point reproduction emitted three NA separators on the base. The patch emits a connected line with the expected point coordinates and tooltip order.
  • The ggplot conversion suite passed 740 assertions on ggplot2 4.0.4. The six warnings and 27 skips matched the base. All nine new assertions also passed on ggplot2 3.5.2.
  • The change combines cleanly with the separate theme-palette patch in Apply ggplot2 theme palettes in ggplotly() #2509.

I used Codex to prepare and test this patch.

This branch has not been deployed

No deployments
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.

Bug: ggplotly with geom_line and custom tooltip does not show lines when tooltip varies per data point

1 participant