Skip to content

Commit

Permalink
create date from ms (#2711)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlstadther authored May 28, 2019
2 parents 41e40fc + 54e17cd commit e222841
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions luigi/templates/history.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,15 @@ <h1> {{name}} History </h1>
.showMaxMin(false)
.ticks(refined_failed_data.values.length+refined_done_data.values.length)
.tickFormat(function(d, i) {
var dx = (merged_data[0].values[d] && merged_data[0].values[d][0]) || (merged_data[1].values[d] && merged_data[1].values[d][0]);
return d3.time.format('%x %X')(new Date(dx));
var dx = (merged_data[0].values[d] && merged_data[0].values[d][0]) || (merged_data[1].values[d] && merged_data[1].values[d][0]);
return d3.time.format('%x %X')(new Date(dx));
});
chart.yAxis
.axisLabel("Processing Time (H:M:S)")
.tickFormat(function(d) {
return d3.time.format('%X')(new Date(d - 32400000));
var dy = new Date();
dy.setHours(0, 0, 0, d);
return d3.time.format('%X')(dy);
});
chart.tooltipContent(function(key, x, y, e, graph) {
tooltip_str = '<center><b>Result status: '+key+'</b></center>'+'<center>processing time: '+y+'</center><center> on '+x+'</center>';
Expand Down

0 comments on commit e222841

Please sign in to comment.