Mady
Mady2mo ago

mo.ui.plotly only updates with new selection

I am using mo.ui.plotly to get a list of selected dots on a map and display the corresponding datapoints in a table below. However, if I make a selection, then double click on the map to clear the selection, the list of dicts returned stays the same (doesn't clear).
8 Replies
Myles Scolnick
Myles Scolnick2mo ago
Do you have an example? I just tried this and cannot reproduce it
Mady
MadyOP2mo ago
marimo | FIRST Indiana Robotics FRC Teams
Explore data and build apps seamlessly with marimo, a next-generation Python notebook.
Myles Scolnick
Myles Scolnick2mo ago
thank you! looking i found the bug, will fix this, thanks!
Myles Scolnick
Myles Scolnick2mo ago
Hey Mady - unfortuanely this is an existing issue in plotly. https://github.com/plotly/react-plotly.js/issues/257
GitHub
onDoubleClick is not firing for scatter plot · Issue #257 · plotly/...
We are trying for scatter plot when we double click on data point we have to catch the data points and show it in a popup. But it seems onDoubleClick is not firing.
Myles Scolnick
Myles Scolnick2mo ago
i may have a way around this probably just on me for not using a more correct api
Mady
MadyOP2mo ago
Thanks for looking into this! Please let me know if there's anything I need to do.
Myles Scolnick
Myles Scolnick2mo ago
should be all good now! i just checked out your app and looks like its working
Mady
MadyOP2mo ago
This is fantastic, thank you so much!