Skip to main content

Streamlit component for rendering vis.js timeline

Project description

streamlit-timeline

image

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

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: streamlit-vis-timeline-0.0.2.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.0.2.tar.gz
Algorithm Hash digest
SHA256 d8513e0542e12478e6b7fcc7abee43c77875c21f5f18673e1a1d47ad301cf7b2
MD5 896732b74455948b7d443d565950ee94
BLAKE2b-256 2c6ab8e73cab97b116172ec5c404bd759a68cc237b57053075f16ff8c64fe020

See more details on using hashes here.

File details

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

File metadata

  • Download URL: streamlit_vis_timeline-0.0.2-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.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for streamlit_vis_timeline-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 932c2335d90bd66460c33b71b33d83983c4d8b2965f1850102e6d44f6b399e8e
MD5 0a7f1b953aad0c8deb01357848bda151
BLAKE2b-256 2df0762e57c92a8a9843b157f7f8c997def05464c53283cdda3c232a43ca9c87

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