Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plotly_click_show-0.1.1.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

plotly_click_show-0.1.1-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file plotly_click_show-0.1.1.tar.gz.

File metadata

  • Download URL: plotly_click_show-0.1.1.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

Hashes for plotly_click_show-0.1.1.tar.gz
Algorithm Hash digest
SHA256 87693e4ffccf1d339fe5f148760b5f34761bdc1d122ecfbb8e12f47710db33d2
MD5 ea3d4e9155afc35e012d3dd7a19a1aca
BLAKE2b-256 abee8d4c8a816d44911cb30e04b70cbf4c9baf691508b7941112d06539a936bc

See more details on using hashes here.

File details

Details for the file plotly_click_show-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for plotly_click_show-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e0533476fe5f9ac9621316d216528a01d7f54d757dc8f62ef4ec223bfebde597
MD5 d323d013e7ad1fd400d3ea57aab117ba
BLAKE2b-256 a9416f5fbd3284b6db4a5bd54cf2538d2bc270e5a99773fec718ddc8c87c7fd1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page