def add_range_slider():
    """Creates adjustable time series slider.

    Returns:
        xslider: config dict for plotly layout

    """
    xslider = dict(rangeselector=dict(buttons=[dict(count=7, label='1w',
        step='day', stepmode='backward'), dict(count=1, label='1m', step=
        'month', stepmode='backward'), dict(count=6, label='6m', step=
        'month', stepmode='backward'), dict(count=1, label='YTD', step=
        'year', stepmode='todate'), dict(count=1, label='1y', step='year',
        stepmode='backward'), dict(step='all')]), rangeslider=dict(), type=
        'date')
    return xslider
