Skip to content
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

Support chart selections (with on_select) for Altair v4 #8516

Open
2 tasks done
jrieke opened this issue Apr 16, 2024 · 1 comment
Open
2 tasks done

Support chart selections (with on_select) for Altair v4 #8516

jrieke opened this issue Apr 16, 2024 · 1 comment
Labels
area:events feature:st.altair_chart type:enhancement Requests for feature enhancements or new features

Comments

@jrieke
Copy link
Collaborator

jrieke commented Apr 16, 2024

Checklist

  • I have searched the existing issues for similar feature requests.
  • I added a descriptive title and summary to this issue.

Summary

We're soon going to add chart selections for Altair in Streamlit, via st.altair_chart(..., on_select="rerun"). However, this only works for Altair v5 today, while st.altair_chart without selections enabled supports both Altair v4 and v5. Supporting selections for v4 wouldn't be easy due to differences in the underlying JSON representation and the need to set up new testing infrastructure to test both versions in parallel. That's why we decided to cut it from the initial release.

If you'd like us to implement support for chart selections with Altair v4, please upvote this issue with a 👍 and let us know in the comments below why you need v4 and can't upgrade to v5!

@jrieke jrieke added type:enhancement Requests for feature enhancements or new features feature:st.altair_chart area:events labels Apr 16, 2024
Copy link

To help Streamlit prioritize this feature, react with a 👍 (thumbs up emoji) to the initial post.

Your vote helps us identify which enhancements matter most to our users.

Visits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:events feature:st.altair_chart type:enhancement Requests for feature enhancements or new features
Projects
None yet
Development

No branches or pull requests

1 participant