You can use the tickFormat function on the axis object as below var xAxis = d3.svg.axis() .scale(x) .orient("bottom") .tickFormat(d3.time.format("%H")); ...
確定! 回上一頁