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: GitHub - d3/d3: Bring data to life with SVG, Canvas and HTML. 📊📈🎉
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’
}
}