Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zoom timeline to current time #10

Open
thebirdgr opened this issue Mar 21, 2024 · 1 comment
Open

Zoom timeline to current time #10

thebirdgr opened this issue Mar 21, 2024 · 1 comment

Comments

@thebirdgr
Copy link

Is it possible to have an argument that when passed, will zoom the timeline to specified timestamp? I have historical dating back 6 months, however, I would like to focus on the data closer to the current time while still keeping history.

@robert-kloepsch
Copy link

By setting start and end argument in the options you can define the intial frame displayed by the timeline if that is what you are looking for. It could look like this:

from streamlit_timeline import st_timeline

st_timeline(items=[], groups=[], options={
"start": "2022-01-10",
"end": "2023-01-10",
}
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants