Scatter plot with date and time on x-axis

I am reading a value and a timestamp(“YYYY-MM-DD hh:mm:ss” is the format of the timestamp) from sqlite databas and trying to get a simple dash scatter plot to display the data. I got the the scatter plot to plot the x-axis with numbers 1,2,3 and so on, and with random numbers on the y-axis. I have tried with timedate(‘now’) on the x-axis but failed.
Is it possible to get a dash scatter plot to present date and time on the x-axis?

Either use datetime objects (examples here: Time series and date axes in Python) or strings in the format YYYY-MM-DD hh:mm:ss like {'x': ['2015-01-10', '2015-01-25']}

2 Likes