I have asked in the past and trying again.
Any way to know (x,y) of user clicks on charts?
Any callback or some way to catch it? I use plotly_chart.
plotly_events is not working as expected and I understand
not supported by streamlit.
I am using annotation with “clicktoshow=onoff” so uaer can
click and comment on/off according to click. So there is a callback
somewhere behind it. Anyone know where is this callback
in streamlit code so maybe I could use it to catch uaer clicking
on chart?
Maybe a way to know which annotations is on and which is off?
So will know where user has clicked?
This is a real issue as we do want to catch clicks of user on
the chart.
Hi @Michel39
This feature is not yet supported in Streamlit, please refer to this post for details:
Hey @Michel39 !
We don’t support chart selections yet but we’re working on it. See my update here . There’s also a prototype you can have a look at to see how it will work. I’ll update that GitHub issue once we are getting closer to a release.
Cheers, Johannes
And this for a prototype by our Product Manager @jrieke
opened 06:39AM - 18 Oct 19 UTC
closed 07:13PM - 14 May 24 UTC
type:enhancement
feature:st.dataframe
feature:charts
area:events
status:in-progress
What if every output element could also serve as an input widget?
Then you co… uld do things like:
* User clicks on chart datapoint → python script receives the value for that data point and does something with it
* User zooms into a chart → python script receives the new zoom bounds and does something with it
* User clicks on dataframe rows → python script receives row index and does something with it
* User click on two points on an image → python script draws a rectangle touching those points
* User edits a row on a dataframe → python script receives the new dataframe
Related discussions:
* https://discuss.streamlit.io/t/hover-and-click-events/586
* https://discuss.streamlit.io/t/setting-data-from-javascript/965/2
---
Community voting on feature requests enables the Streamlit team to understand which features are most important to our users.
**If you'd like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.**

Hi
Any idea around when will it be released?
Will it be also fo line charts?
As I saw in your link not all charts will have callback.
Any way you csn point me where is your callback function for annotations? As currently in onoff mode you can click and it shows/disappears.
Chanin Nantasenamat via Streamlit <notifications@streamlit.discoursemail.com >:
system
Closed
June 24, 2024, 4:44pm
4
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.