Plotly graph for labelling timeserie data
Project description
streamlit-label-graph
Plotly graph for labelling timeserie data
Installation instructions
pip install streamlit-label-graph
Usage instructions
import plotly.express as px
import pandas as pd
from streamlit_label_graph import label_graph, LabelConfig
config: LabelConfig = {
'categories': [
{'key': "HOT", 'color': 'rgba(255 110 110,0.1)'},
{'key': 'COLD', 'color': "rgba(110,110,255,0.1)"}
]
}
df = pd.DataFrame({'date': .., 'temperature': ..})
figure = px.line(df, x=df['date'], y=df['temperature'])
labels = label_graph(figure, config)
# -> [{"key": "..", "category": "HOT", "left": .., "right": ..}, {...}]
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
Close
Hashes for streamlit-label-graph-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebe0a531ee242547b345549946a15f61aebabf1032f01c73eb100541783ee1e4 |
|
MD5 | 0ccf8a0ffd3f96fa8be79e9fb209cb2a |
|
BLAKE2b-256 | 8be83a8d72b1a905f07cd70e35084ad522cfdab4d1ab3347a464c93056dd7215 |
Close
Hashes for streamlit_label_graph-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5db05375d1dd21c97defe33a3ad44b0779b91a9afabe28e5b67a4587db54f970 |
|
MD5 | 76db1a21c63da9b741889aa360e0f1f6 |
|
BLAKE2b-256 | 22f80ad99d5221a2ea3d9a50310d462f4a3bc2662d7da141e286aba294475f19 |