Huge thanks for this wonderful component, Qiusheng!
Would you have an idea how I could accomplish multiselection in my code? I checked the documentation and passed " ‘mulitselect’: True" into the options but it does not work.
I am a beginner in python. So, I am not sure how do I get my dataframe into a format that is suited for this library. So, far I have done following but it is not working. I am getting error of “string indices must be integers”. My dataframe name is item3 here (a subset of my main dataframe filtereddata with columns of project name, start date, end date and some other columns. It doesn’t have an ID column, so I have inserted it manually.
import streamlit as st
from streamlit_timeline import st_timeline
filtered_data.insert(0,'New_ID', range(880, 880 + len(filtered_data)))
items3= filtered_data[['New_ID','start_date','end_date']]
items3 = filtered_data.to_json()
items = [{'id':items3['New_ID'],'content':items3['end_date'],'start':items3["start_date"]}]
timeline = st_timeline(items, groups=[], options={}, height="300px")
st.subheader("Selected item")
st.write(timeline)
Could someone please help me change the style of the line and the dot?
My only success is to change the box’s style without changing the line and the dot.
Amazing component! Loved it!
I am planning to use it to schedule the production at my ice cream factory. So far I was able to to display the data, it has worked perfectly. But I was not able to store the new “start” data after rearranged, as the component returns the initial value of the item. Does anyone have a work around for this? Here is my code:
With “start” and “end” you can configure the start and endpoint of the axis once the timeline is loaded for the first time. When setting these options the timeline does not load at all. The code needs to be rerun to display the timeline.
Hello! I have a similar issue here, does anyone know how to change the box style and line colour? Also, any idea how to insert custom dates on the x axis for the particular events added to the timeline? Thanks!
Hello there 👋🏻
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.