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!

HH:MM:SS on Y axis

Hello,
I’m trying to figure out how to plot HH:MM:SS on the y axis with the x axis having date time. The graph is https://plot.ly/~kensel/0 I don’t know how the data is sorted. eventually it would be nice to have it as a streaming scatter plot.
Any help would be appreciated.
Thank you,

Hi,
Registering that I would appreciate help with this too. I’m trying to graph sunrise/sunset times through the year, so I need undated hh:mm:ss on y axis.

The graph is https://plot.ly/~eteb3/7/

All help gratefully received. Thanks,

Hey guys,

From what I know, you can specify data format for both axis. This is possible through the tickformat property of an axis layout. You can pass values matching the target format.

Regarding dates, you can refer to this page: https://github.com/mbostock/d3/wiki/Time-Formatting

So, as an example with date on X-axis (M/D/Y) and time on Y-axis (H/m/s):

‘layout’: {
‘xaxis’: {
‘tickformat’: ‘%x’
},
‘yaxis’: {
‘tickformat’: ‘%X’
}
}