Skip to main content

Streamlit component for rendering vis.js timeline

Project description

streamlit-timeline-demo

image image Open in Streamlit

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

streamlit-vis-timeline-0.2.0.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

streamlit_vis_timeline-0.2.0-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file streamlit-vis-timeline-0.2.0.tar.gz.

File metadata

  • Download URL: streamlit-vis-timeline-0.2.0.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for streamlit-vis-timeline-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f865eee1edbd246d77fa943703c5bdc4e6d148b99f7e9699a779aea491f8aba5
MD5 d295878d19c5db82c73839ffa5e11956
BLAKE2b-256 a25cd91d6aeb3aa5ba885b11d6d35a7ed5f4acd74561b4df7c4ca6463f2c35ee

See more details on using hashes here.

File details

Details for the file streamlit_vis_timeline-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: streamlit_vis_timeline-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for streamlit_vis_timeline-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3da0e780530d49400ea68fc0ecd9170a1ac21e0a2197f3c2a5ad9733185d64ab
MD5 21691273600e4f3bdf4654f7b758cfde
BLAKE2b-256 4d5259c3d34384c7510596216737d4184d6b70ac6e3db36641f04b9f230dd7f8

See more details on using hashes here.

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