✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Problem with RangeSlider.Style

Hi, first time posting:

I’m trying to create a rangeslider and run it through dash and the code looks like the following:

dcc.RangeSlider( #Creates the html Division for the year slider
id=‘year-picker’,
min = min,
max = max,
value= [2010, 2021],
marks = {
‘label’ : str(year_dict),
‘style’ : {
‘font-size’:‘10px’,
‘transform’:‘rotate(-45deg)’
}
}
#step=None
),

The problem happens when I run the Dash server, I get an error that says: “Invalid argument marks.style passed into RangeSlider with ID “year-picker”.”

Looking at the documentation shows that style should be a valid dictionary within RangeSlider. Any help is appreciated. Let me know if something wasn’t clear.

Thanks!