Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

Compress date field (x-axis)

When I import a CSV file, I use the x-axis for the date. It is in long format, and the online view of Plotly does a good job except with the date field because is hard to read the times.

My dates are automatically generated from a server which collects pulse data from water flow sensors. Graph link below:

https://plot.ly/~ngant17/8

How do I set up the online graph in Ployly to show the times more easily? Without having to manually edit the date fields in the CSV file. The server outputs this date format so I don’t think I can change it on that side.

You’ll need to convert your 5/13/2017 8:40:28 PM dates to 2017-13-05 8:40:28.

More info here: https://help.plot.ly/date-format-and-time-series/