# Rangebreaks with bounds and values show overlapping candlesticks

**URL:** <https://community.plotly.com/t/rangebreaks-with-bounds-and-values-show-overlapping-candlesticks/46067>\
**Category:** 📊 Plotly Python\
**Created:** [October 15, 2020, 5:50am UTC](https://community.plotly.com/t/rangebreaks-with-bounds-and-values-show-overlapping-candlesticks/46067 "2020-10-15T05:50:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![woshibt](https://avatars.discourse-cdn.com/v4/letter/w/48db29/32.png) [@woshibt](https://community.plotly.com/u/woshibt)\
**Post date:** [October 15, 2020, 5:50am UTC](https://community.plotly.com/t/rangebreaks-with-bounds-and-values-show-overlapping-candlesticks/46067/1 "2020-10-15T05:50:22Z")

</div>

Was trying to plot a candlestick for a period of time using plot.ly python lib, and encountered this issue that I don’t know how to resolve. Would appreciate any help.

Below is code:

```auto
fig.update_xaxes(
        rangebreaks=[
            dict(pattern='hour', bounds=[16, 9.5]), #hide after hours
            dict(bounds=["sat", "mon"]), #hide weekends
            dict(values=["2020-09-07"]) # hide US labor day (monday)
        ])

```

The candlesticks (in 30m) overlap between [“2020-09-01 11:30”, “2020-09-04 15:30”] and [“2020-09-08 9:30”, “2020-09-11 13:30”].

Btw, the 1day candlesticks seem good. No gap or overlaps.
