streamlit
streamlit copied to clipboard
Support chart selections (with `on_select`) for Altair v4
Checklist
- [X] I have searched the existing issues for similar feature requests.
- [X] 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!
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.