You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, currently working on Streamlit + Plotly selections! I noticed this bug that didn't seem like a bug on Streamlit's side.
It seems like onUpdate gets called and graph gets updated visually incorrectly when clickmode: "event+select" and dragmode: "select" and doing selection clicks. I would expect onDeselect to be called and layout.selections to remove the selection because selectedpoints in data has []
Expectation: Graph is not less than 100% opaque
Actual: Graph is less than 100% opaque and weird and onUpdate is not called
Video to show actual:
Screen.Recording.2024-04-19.at.3.39.09.PM.mov
I read that most issues here are likely Plotly.js problems but not sure if that's the case because I went to check plotly.js code and onUpdate is a callback while plotly.js contains an update function as far as I can tell.
Hi, currently working on Streamlit + Plotly selections! I noticed this bug that didn't seem like a bug on Streamlit's side.
It seems like
onUpdategets called and graph gets updated visually incorrectly whenclickmode: "event+select"anddragmode: "select"and doing selection clicks. I would expectonDeselectto be called andlayout.selectionsto remove the selection becauseselectedpointsindatahas[]Reproducible example: https://codesandbox.io/p/sandbox/react-forked-6rypkr?file=%2Fsrc%2FApp.tsx
Steps to reproduce:
Expectation: Graph is not less than 100% opaque
Actual: Graph is less than 100% opaque and weird and
onUpdateis not calledVideo to show actual:
Screen.Recording.2024-04-19.at.3.39.09.PM.mov
I read that most issues here are likely Plotly.js problems but not sure if that's the case because I went to check plotly.js code and
onUpdateis a callback while plotly.js contains anupdatefunction as far as I can tell.