- svg.selectAll("path.month") .
var month_name = d3.time.format("%B")
svg.selectAll("text.month")
.data(function(d) { return d3.time.months(new Date(d, 0, 1), new Date(d + 1, 0, 1)); })
.enter().append("text")
.attr("class", "month")
.attr("x", function(d) { return week(d) * cellSize; })
.attr("y", 8 * cellSize)
.text(month_name);
, :
var margin = {top: 19, right: 20, bottom: 40, left: 19},
width = 960 - margin.right - margin.left,
height = 156 - margin.top - margin.bottom,
cellSize = 17;