I’m trying to plot a dual Y axis plot with a mm:ss on the Y1 axis.
As you can see in the graph, plotly isn’t sorting the hh:mm:ss values correctly.
If i leave the data as “seconds”, it will display fine.
If I convert seconds to a python timedelta and put into the list as a str and format as a date on the axis, I get this bizarre result. 1:49 gets sorted as the lowest value instead of where it belongs.
Plotly.py doesn’t have specific support for the timedelta type. I think you could use a datetime array and then format the ticks to only display hh:mm:ss (using the yaxis.tickformat property).
Feel free to add a reproducible example if you’d like help working through the details,