# Range Slider/Selectors showing partial data or failing to show data

**URL:** <https://community.plotly.com/t/range-slider-selectors-showing-partial-data-or-failing-to-show-data/38354>\
**Category:** 📊 Plotly Python\
**Created:** [April 24, 2020, 4:53pm UTC](https://community.plotly.com/t/range-slider-selectors-showing-partial-data-or-failing-to-show-data/38354 "2020-04-24T16:53:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Emmanuelle](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/emmanuelle/32/7853_2.png) [@Emmanuelle](https://community.plotly.com/u/Emmanuelle)\
**Post date:** [April 25, 2020, 4:28pm UTC](https://community.plotly.com/t/range-slider-selectors-showing-partial-data-or-failing-to-show-data/38354/2 "2020-04-25T16:28:57Z")

</div>

Hi @9eqUoa2vHj welcome to the forum! You need to specify the `range` of the `xaxis`, not the one of the `rangeslider`:

```auto
fig.update_layout(
    xaxis=dict(
        rangeselector=dict(
            buttons=list([
                dict(count=1,
                     label="1M",
                     step="month",
                     stepmode="backward"),
                dict(count=3,
                     label="3M",
                     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(label="All",
                     step="all")
            ])
        ),
        rangeslider=dict(
            visible=True,
            #range=(dates[0], dates[-1])
        ),
        range=(dates[0], dates[-1]),
        type="date"
    )
)

```

---

_[View the full topic](https://community.plotly.com/t/range-slider-selectors-showing-partial-data-or-failing-to-show-data/38354)._
