I have tried to hide the gaps in every possible way with xaxes type=βdateβ, and I just could not.
The link you have provided may perhaps work for daily charts, but what about H4 charts, M15 charts?
The closest I got to my goal of removing the gaps was with
rangebreaks=[dict(enabled=True, pattern="day of week")]
However, this does not work well for financial candlestick charts in different timeframes (H1, H4, M15, etc ). There are still [smaller] gaps, and some candlesticks are dropped or changed.
The only thing that seems to work is to forget about the type=βdateβ, change my dataframe so that the timestamps are strings and then trick plotly to use string type in the xaxes.
That feels like a defeat.