Black Lives Matter. Please consider donating to Black Girls Code today.

[plotly express] scatter plot x axis range range mismatch

I am trying to plot a scatter plot using ploty express

x axis is datetime
y axis is score
and it plots something like this


not sure why it shows from 2000 when the data is from 2019 only

Hi @qxlsz this is weird indeed. Can you reproduce the problem on a standalone code snippet which you could share here? You can force the axis range as explained here but this shouldn’t happen, are you sure you don’t have an outlier data point?