js/graph.js: Better time axis for graphs