Streamlit component for rendering vis.js timeline
Project description
streamlit-timeline-demo
Streamlit component for rendering vis.js timeline with bidirectional communication.
Check out the GitHub repositories streamlit-timeline and streamlit-timeline-demo. For JavaScript examples, check out the vis.js timeline examples and documentation.
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": "2022-10-20", "start": "2022-10-20"},
{"id": 2, "content": "2022-10-09", "start": "2022-10-09"},
{"id": 3, "content": "2022-10-18", "start": "2022-10-18"},
{"id": 4, "content": "2022-10-16", "start": "2022-10-16"},
{"id": 5, "content": "2022-10-25", "start": "2022-10-25"},
{"id": 6, "content": "2022-10-27", "start": "2022-10-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
File details
Details for the file streamlit-vis-timeline-0.2.1.tar.gz
.
File metadata
- Download URL: streamlit-vis-timeline-0.2.1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75403aeb201fc0f306b179d763f2422b604529cd2d01cd5a9a25d96eb37a856b |
|
MD5 | 81569b64153f88b28ade4fdfcadc2cba |
|
BLAKE2b-256 | a4bf15b2c302fb0ceb8f2ce635af514f8625af06d314e7b0462fb5ef96314f07 |
File details
Details for the file streamlit_vis_timeline-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: streamlit_vis_timeline-0.2.1-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2241301b35e13f78bdea07dbc9b0496ed3528fcee130bf8e0cc8eef399fe29c |
|
MD5 | 2694778f29bcd743630353ecb7cb1b3c |
|
BLAKE2b-256 | a5d11186e88c86d4f48fcd1b200b1d46fa56cdc5e35b179a82815fe0459d03dd |