Creating a draggable and saveable plot

I’m very interested in being able to create a simple xy scatter plot, but be able to move a given dot just by dragging it instead of changing the value in an input control. Basically use the plot as both the input and the output. Does anyone know if/how this is possible? It is somewhat similar to a kanban board functionality, except across a whole grid instead of limited to a few columns.

Hi @kevdev

You can look into using the bidirectional plotly component called streamlit-plotly-events which can be installed via pip

Here’s the GitHub repo with further details:

Hope this helps!

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.