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==0.1.0 (Version)
## 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.1.0.tar.gz
.
File metadata
- Download URL: plotly_click_show-0.1.0.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 | e80f70b28f6ac5a16c15ead389fc2740cf1ee4d003fd7ad7ee4252a4acdf8664 |
|
MD5 | cddd884653d860246bfec791db5a2f11 |
|
BLAKE2b-256 | 176b4c430d1ddde21925b1d930f379755212dc12d416c641f5af68a146c715e3 |
File details
Details for the file plotly_click_show-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: plotly_click_show-0.1.0-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 | f77a942cbace2d58065e26f541ebf57f3edbe4d7e99562c084a8e888e3e47017 |
|
MD5 | 6fc37f1bcd79c7522bf3a61b726e36fe |
|
BLAKE2b-256 | 0b1ade1f02650ffd7ff9d1d4f0dd433e02a0e69649e615c243f5912217790795 |