Skip to main content

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


Download files

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

Source Distribution

streamlit-label-graph-0.1.0.tar.gz (62.4 kB view hashes)

Uploaded Source

Built Distribution

streamlit_label_graph-0.1.0-py3-none-any.whl (63.2 kB view hashes)

Uploaded Python 3

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