plotly-click-show


Nameplotly-click-show JSON
Version 0.1.0 PyPI version JSON
download
home_page
SummaryStreamlit component that allows to get the coordinate and curvename of plotly plot
upload_time2023-12-28 19:37:42
maintainer
docs_urlNone
authorharrit
requires_python>=3.7
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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

```bash
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)

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "plotly-click-show",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "",
    "author": "harrit",
    "author_email": "harshrprajapati27@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/17/6b/4c430d1ddde21925b1d930f379755212dc12d416c641f5af68a146c715e3/plotly_click_show-0.1.0.tar.gz",
    "platform": null,
    "description": "# plotly_click_show\r\n\r\n**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.\r\n\r\n## Installation\r\n\r\n```bash\r\npip install plotly_click_show==0.1.0 (Version)\r\n\r\n\r\n## Usasges\r\n \r\nimport streamlit as st\r\nfrom plotly.graph_objects import Figure\r\nfrom plotly_click_show import plotly_events\r\n\r\n# Create a Plotly figure\r\nfig = Figure()\r\n\r\n# Add your traces and layout configuration here\r\n\r\n# Call the plotly_events function to enable clicking events\r\nclicked_points = plotly_events(fig)\r\n\r\n# Access the clicked points, which is a list of dictionaries containing x, y, and name\r\nst.write(\"Clicked Points:\", clicked_points)\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Streamlit component that allows to get the coordinate and curvename of plotly plot",
    "version": "0.1.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0b1ade1f02650ffd7ff9d1d4f0dd433e02a0e69649e615c243f5912217790795",
                "md5": "6fc37f1bcd79c7522bf3a61b726e36fe",
                "sha256": "f77a942cbace2d58065e26f541ebf57f3edbe4d7e99562c084a8e888e3e47017"
            },
            "downloads": -1,
            "filename": "plotly_click_show-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6fc37f1bcd79c7522bf3a61b726e36fe",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 1507223,
            "upload_time": "2023-12-28T19:37:32",
            "upload_time_iso_8601": "2023-12-28T19:37:32.656022Z",
            "url": "https://files.pythonhosted.org/packages/0b/1a/de1f02650ffd7ff9d1d4f0dd433e02a0e69649e615c243f5912217790795/plotly_click_show-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "176b4c430d1ddde21925b1d930f379755212dc12d416c641f5af68a146c715e3",
                "md5": "cddd884653d860246bfec791db5a2f11",
                "sha256": "e80f70b28f6ac5a16c15ead389fc2740cf1ee4d003fd7ad7ee4252a4acdf8664"
            },
            "downloads": -1,
            "filename": "plotly_click_show-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "cddd884653d860246bfec791db5a2f11",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 1500910,
            "upload_time": "2023-12-28T19:37:42",
            "upload_time_iso_8601": "2023-12-28T19:37:42.870235Z",
            "url": "https://files.pythonhosted.org/packages/17/6b/4c430d1ddde21925b1d930f379755212dc12d416c641f5af68a146c715e3/plotly_click_show-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-28 19:37:42",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "plotly-click-show"
}
        
Elapsed time: 1.41001s