X-axis markers not equidistant in px.bar or px.line

I have counts split into trimesters and would like to plot them, however, plotly does something unexpected. The bars are not equidistant but appear in groups of three. It there a way to fix that?

image