✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
📊 Dash 2.0 is Arriving. Register here.

A Year Picker Range? (without date and month)

Hi, is it possible to define the DatePickerRange in such a way that the user can only see and select the years in the dropdown calendar (without date and month)? My data is an annual series.

Thanks in advance for any help.

I think it would be better to just use a Dropdown with the year you want.

dcc.Dropdown(options=[{'label':x, 'value': x} for x in range(1999, 2018)])
1 Like

Thanks, that makes sense!
(Sorry, still new to this plotly/pandas/python thing)