Skip to content

[Fix]: st.altair_chart selection interval showing true tooltip#10456

Merged
mayagbarnes merged 3 commits into
developfrom
tooltip-selection-fix
Feb 20, 2025
Merged

[Fix]: st.altair_chart selection interval showing true tooltip#10456
mayagbarnes merged 3 commits into
developfrom
tooltip-selection-fix

Conversation

@mayagbarnes
Copy link
Copy Markdown
Collaborator

@mayagbarnes mayagbarnes commented Feb 20, 2025

Describe your changes

When adding a selection interval to an altair plot, the selection rectangle has a tooltip "true". There should not be a tooltip for the selection mark - it should be the same as vega behavior.

As noted in the vega docs here for tooltip property, setting tooltip to true or {"content": "encoding"} should exhibit the same behavior.

Vega editor when hovering over selection interval vs OUTSIDE selection:
Screenshot 2025-02-19 at 4 38 07 p mScreenshot 2025-02-19 at 4 38 14 p m

Current: Streamlit st.altair_chart when hovering over selection interval vs OUTSIDE
Screenshot 2025-02-19 at 4 42 11 p mScreenshot 2025-02-19 at 4 40 59 p m

GitHub Issue Link

Closes #10448

Updated: hovering over selection interval:
Screenshot 2025-02-19 at 4 41 14 p m

Testing Plan

  • E2E Tests: ✅ Added
  • Manual Testing: ✅

@mayagbarnes mayagbarnes added security-assessment-completed change:bugfix PR contains bug fix implementation impact:users PR changes affect end users labels Feb 20, 2025
@mayagbarnes mayagbarnes marked this pull request as ready for review February 20, 2025 01:49
@mayagbarnes mayagbarnes merged commit a128697 into develop Feb 20, 2025
@mayagbarnes mayagbarnes deleted the tooltip-selection-fix branch February 20, 2025 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:bugfix PR contains bug fix implementation impact:users PR changes affect end users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vega-lite selection interval shows "true" tooltip

2 participants