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.
This gap is created by this code:
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.
Code:
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.