Skip to content

Interactive Plotly for Streamlit πŸ‘‰πŸ“Š Select/ filter dataframes via interactive plotly graphs

License

Notifications You must be signed in to change notification settings

danstan5/streamlit-interactive-plotly-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‘‰ Interactive plotly data selection in streamlit πŸ“Š

Streamlit App

streamlit-interactive-plotly-data

This workaround enables you to select data interactively from plotly graphs in streamlit in a similar fashion to how you can do interactive graphing with dash. Most of this is achieved with the excellent streamlit-plotly-events library which allows you to pull up the plotly event data from a given plot.

This demo app demonstrates a function selected_indexes which can be used to link the selected data back to dataframe used to generate the plot. Returning the dataframe indexes to easily filter on the selected data.

πŸ”₯ Bonus

If using VScode, check out the .vscode/launch.json which can be used to run debugging on live streamlit apps in development.

🐍 Requirements

pip install plotly streamlit streamlit-plotly-events

About

Interactive Plotly for Streamlit πŸ‘‰πŸ“Š Select/ filter dataframes via interactive plotly graphs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages