# \[rangebreaks\] Weird behaviour of rangebreaks

**URL:** <https://community.plotly.com/t/rangebreaks-weird-behaviour-of-rangebreaks/84699>\
**Category:** 📊 Plotly Python\
**Created:** [May 24, 2024, 4:18am UTC](https://community.plotly.com/t/rangebreaks-weird-behaviour-of-rangebreaks/84699 "2024-05-24T04:18:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wishabhilash](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/wishabhilash/32/28093_2.png) [@wishabhilash](https://community.plotly.com/u/wishabhilash)\
**Post date:** [May 24, 2024, 4:18am UTC](https://community.plotly.com/t/rangebreaks-weird-behaviour-of-rangebreaks/84699/1 "2024-05-24T04:18:21Z")

</div>

Hi, am using Plotly to chart financial data. I wanted to hide non-business days and this lead to weird behaviour of plotly. Ex, below we can see a gap.

 ![Screenshot 2024-05-24 at 9.39.30 AM](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/d/a/da454723f393b1a6ac8a8284264c7669a4c05791.png)  
 ![Screenshot 2024-05-24 at 9.39.43 AM](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/d/1/d11a45a68a6da868e06a50dcd48495eb5c48c624.png)  
This gap is created by this code:

```auto
fig.update_xaxes(
    rangeslider_visible=False,
    rangebreaks=[
        dict(bounds=["sat", "mon"]),
        dict(bounds=[15.5, 9.25], pattern="hour"),
    ]
)

```

This range has 3 holidays, Sat, Sun and Mon. When I try adding Mon i.e. 2024-05-20 to rangebreaks i get overlapping charts.

 ![Screenshot 2024-05-24 at 9.47.15 AM](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/2/d/2d22f9aa21c0f96e0ddc8feff07594a99c3db98f.png)  
Code:

```auto
fig.update_xaxes(
    rangeslider_visible=False,
    rangebreaks=[
        dict(bounds=["sat", "mon"]),
        dict(values=["2024-05-20"]),
        dict(bounds=[15.5, 9.25], pattern="hour"),
    ]
)

```

Kindly help.
