-
Notifications
You must be signed in to change notification settings - Fork 4k
Improve st.line_chart hovering performance
#13156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
✅ PR preview is ready!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR improves the hovering performance of st.line_chart when working with large datasets by optimizing the hover interaction implementation.
Key Changes:
- Introduces a threshold-based throttling mechanism for hover events on large datasets (>1000 points)
- Refactors hover tooltip rendering from conditional opacity to filter-based approach
- Updates mouse event handling from
pointerover/pointerouttomousemove/mouseleave
sfc-gh-lwilby
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Describe your changes
Improves the hovering performance of
st.line_chartwith larger datasets.Before:
Screen.Recording.2025-11-28.at.15.35.32.mov
After:
Screen.Recording.2025-11-28.at.15.35.01.mov
GitHub Issue Link (if applicable)
st.line_chartelements #13154Testing Plan
Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.