Hi all,
Is there a way to remove the start / end values from a select slider (safe and high in this case)?
I know it has been asked before without any answer.
Hi all,
Is there a way to remove the start / end values from a select slider (safe and high in this case)?
I know it has been asked before without any answer.
Hello, you can use CSS code.
custom_css = """
<style>
[data-testid="stTickBarMin"],
[data-testid="stTickBarMax"] {
font-size: 0px;
}
</style>
"""
# Inject custom CSS with st.markdown()
st.markdown(custom_css, unsafe_allow_html=True)
color = st.select_slider(
"Select a color of the rainbow",
options=[
"red",
"orange",
"yellow",
"green",
"blue",
"indigo",
"violet",
],
)
It’s very easy to find, and custom it : https://www.youtube.com/watch?v=AtRf_eRQZwQ
Thank you so much, awesome!
Hi @akopp , you can use something like this:
st.select_slider(label='Hate', options=('Safe', 'Low', 'High'))
You can customize colours - there are many responses for this on this forum.
Cheers
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
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.
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.
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.
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.