Rangebreaks working fine with fig.show() but when used with dcc.Graph rangebreaks not working

range breaks working fine with fig.show() but when used with dcc.Graph rangebreaks not working.

I’m trying to remove the gaps while plotting candlestick chart

fig.update_xaxes(

rangebreaks=[

    dict(bounds=[15.5,9.25], pattern="hour")

]

)

This works fine with fig.show() but while using dcc.graph it doesn’t remove the gaps

1 Like

Upgrading dash to the latest version seems to solve the problem: [BUG] Rangebreaks from Figure.update_xaxes() aren't applied when rendered with Dash · Issue #1196 · plotly/dash · GitHub