-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Clicks are sometimes missed with clickmode layout key #6898
Comments
Thanks @willhuang1997 - please note, |
Hi @alexcjohnson , thanks for getting back to me! I updated this fiddle to 2.29.1. The behavior is still buggy from my perspective. What I expect: I click once I see the hover label and the bar should highlight. When you see the label disappear, it means that I am clicking in this gif. I have tried registering the |
@willhuang1997 Hi there, good demo app! BTW, I also noticed that a rangeslider bug in https://chart-selections-demo.streamlit.app/#selections-for-a-candlestick-chart and in your JSFiddle examples, that you might want to follow if you think it's relevant, see the issue I asked recently. |
Hi @Lexachoc , the fullscreen button is a streamlit full screen button. Also, thanks for letting me know the bug is there for candlestick charts! |
Hi,
This is William Huang from the Streamlit Open Source team!
I am currently attempting to provide selection on charts for the Streamlit st.plotly_chart api. I noticed there are on_select and on_click callbacks that we can register to. The on_click callbacks always register and that seems fine.
However, when I try to use the clickmode: “event+select” in the layout of the graph, clicks are sometimes missed. This can be replicated here:
Plotly.js - JSFiddle - Code Playground
or here:
Plotly Playground - JSFiddle - Code Playground 1
Is there someone that can help me to understand why clicks are being missed? We are trying to release this feature within streamlit so any help would be appreciated!
I created a demo app here: https://chart-selections-demo.streamlit.app/ that uses this clickmode layout property. (FEEL FREE TO CHECK OUT 😉 )
The text was updated successfully, but these errors were encountered: