Metadata-Version: 2.1
Name: draggable-line-chart
Version: 0.0.2
Summary: A Streamlit component that displays a line chart with draggable points. Users can click and drag points on the chart to adjust their values. The updated data of the chart is returned.
Home-page: 
Author: Brayan Munoz
Author-email: balexander.munoz@udea.edu.co
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: streamlit >=0.63
Provides-Extra: devel
Requires-Dist: wheel ; extra == 'devel'
Requires-Dist: pytest ==7.4.0 ; extra == 'devel'
Requires-Dist: playwright ==1.39.0 ; extra == 'devel'
Requires-Dist: requests ==2.31.0 ; extra == 'devel'
Requires-Dist: pytest-playwright-snapshot ==1.0 ; extra == 'devel'
Requires-Dist: pytest-rerunfailures ==12.0 ; extra == 'devel'

# st-draggable-line-chart

Streamlit component that displays a line chart with draggable points. Users can click and drag points on the chart to adjust their values. The updated data of the chart is returned.

## Installation instructions

```sh
pip install draggable-line-chart
```

## Example

```python
import streamlit as st
import pandas as pd
from draggable_line_chart import draggable_line_chart

st.subheader("Draggable Plot!")
initial_data = pd.DataFrame({
    "Col1": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
    "Col2": [1, 4, 9, 16, 25, 36, 49, 64, 81, 100],
    "Col3": [-1, -2, -3, -4, -5, -6, -7, -8, -9, -10]
}).to_dict()
colors = ['#1f77b4', '#ff7f0e', '#2ca02c']
new_data = draggable_line_chart("My Plot", initial_data, colors=colors, key="foo")
new_data
```
