Streamlit component that allows to get the coordinate and curvename of plotly plot
Project description
plotly_click_show
plotly_click_show is a Streamlit component that enables you to capture clicking events on a Plotly plot within a Streamlit app. It provides the coordinates and curve names of the clicked points, allowing for interactive data exploration.
Installation
pip install plotly_click_show
## Usasges
import streamlit as st
from plotly.graph_objects import Figure
from plotly_click_show import plotly_events
# Create a Plotly figure
fig = Figure()
# Add your traces and layout configuration here
# Call the plotly_events function to enable clicking events
clicked_points = plotly_events(fig)
# Access the clicked points, which is a list of dictionaries containing x, y, and name
st.write("Clicked Points:", clicked_points)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file plotly_click_show-0.0.2.tar.gz
.
File metadata
- Download URL: plotly_click_show-0.0.2.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64467e2975600ed685141bff103ad736925c8deeae256cf739a3b36086e15992 |
|
MD5 | 346a2b40d69079bc2f94ba4308330403 |
|
BLAKE2b-256 | 3462e43d835ced1acf01f75fd33c0d5f1a1ccdf704e608ae901392e45eaaa12d |
File details
Details for the file plotly_click_show-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: plotly_click_show-0.0.2-py3-none-any.whl
- Upload date:
- Size: 1.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0b5111d63e0fb775c7e3db24bf2a380a44e2c2157d27d3e32fa49be870bd8fa |
|
MD5 | e5e31dfb40b71747e9bdd220499e4e48 |
|
BLAKE2b-256 | addcaef189cf9769d2fe693908a026b6dc6b8a250f3d3bd8433243b7ad62c39c |