Streamlit component for rendering vis.js timeline
Project description
streamlit-timeline
Streamlit component for rendering vis.js timeline
Installation
pip install streamlit-vis-timeline
Usage
import streamlit as st
from streamlit_timeline import st_timeline
st.set_page_config(layout="wide")
items = [
{"id": 1, "content": "2014-04-20", "start": "2014-04-20"},
{"id": 2, "content": "2014-04-14", "start": "2014-04-14"},
{"id": 3, "content": "2014-04-18", "start": "2014-04-18"},
{"id": 4, "content": "2014-04-16", "start": "2014-04-16"},
{"id": 5, "content": "2014-04-25", "start": "2014-04-25"},
{"id": 6, "content": "2014-04-27", "start": "2014-04-27"},
]
timeline = st_timeline(items, groups=[], options={}, height="300px")
st.subheader("Selected item")
st.write(timeline)
Demo
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
Built Distribution
Close
Hashes for streamlit-vis-timeline-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8513e0542e12478e6b7fcc7abee43c77875c21f5f18673e1a1d47ad301cf7b2 |
|
MD5 | 896732b74455948b7d443d565950ee94 |
|
BLAKE2b-256 | 2c6ab8e73cab97b116172ec5c404bd759a68cc237b57053075f16ff8c64fe020 |
Close
Hashes for streamlit_vis_timeline-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 932c2335d90bd66460c33b71b33d83983c4d8b2965f1850102e6d44f6b399e8e |
|
MD5 | 0a7f1b953aad0c8deb01357848bda151 |
|
BLAKE2b-256 | 2df0762e57c92a8a9843b157f7f8c997def05464c53283cdda3c232a43ca9c87 |