Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Numbers interpreted as dates

The plot works fine on codepen

But the exact same code produces the following output on my system.
scatter

As you can see plotly seems to think the numbers on x axis are dates. Not sure why this is happening.
My plotly version is 1.31.0

console.log(typeof(xdata[0])) produces number in the console.

Thanks

Apologies!
Something was messed up in my layout. This works fine.
Please ignore.