Hello!
Does anyone know how to change the angle or something else of the slider values, so that the text doesnāt overlap?
Here is an idea transforming those labelsā css.
import streamlit as st
st.markdown("""
<style>
[data-testid="stThumbValue"] {
transform: rotate(-20deg) translate(50%, 10%);
}
</style>
""", unsafe_allow_html=True
)
"# Rotated `stThumbValue`"
" "
value = st.select_slider(
"select_option",
options=range(0, 100, 10),
value=[30, 40],
format_func=lambda x: f"YEAR 2020.{x} š¦ ",
label_visibility='collapsed'
)
Also, check bullet #3 from this blog post to learn more about those tweaks.
A guide for Streamlit beginners
Hey, community!
My name is Debbie Matthews, and Iām a moderator on Streamlitās wonderful forum . You may have seen me around as mathcatsand , as in āmath, cats, andā¦.ā
If you hang around the forum long enough, youāll start seeing some common pain points and areas of confusion. I thought itād be helpful for new users to know where many people trip as they get started with Streamlit.
In this post, Iāll talk about 10 of them:
Buttons arenāt statefulā¦
2 Likes
system
Closed
June 10, 2023, 7:17pm
3
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
There are a collection of GitHub issues about this too. If anyone comes across this and wants to upvote getting a solution built-in, hereās the designated issue for it (with other, closed issues merged into it as noted in the thread):
opened 01:07PM - 08 Jun 21 UTC
type:bug
area:styling
status:confirmed
priority:P2
feature:st.slider
### Steps to reproduce
Here's an example:
```python
from datetime impor⦠t date
import streamlit as st
dates = st.slider('date range',
min_value=date(2019, 8, 1), max_value=date(2021, 6, 4),
value=(date(2021, 5, 21), date(2021, 6, 4)))
```
**Expected behavior:**
Legible dates and handles on the slider.
**Actual behavior:**

### Is this a regression?
no
### Debug info
- Streamlit version: Streamlit, version 0.81.1
- Python version: Python 3.9.4
- Using Conda? yes
- OS version: Windows 10
- Browser version: Latest Chrome
### Additional information
It probably makes sense to right-align the lower end of the range and left-align the upper end of the range.