When I tried to use scaleTime from d3 to create an y-axis, I found that the tick that should be the first month, "January" actually shows the name of that specific year. How can I get it to show the name of the month instead of the year?
Here are my code for generating the y-axis.
var yScale = d3.scaleTime().domain([new Date(0, -1, 10), new Date(0, 12)]).range([0, 600]);
var yAxis = d3.axisLeft(yScale).ticks(14);
g.append("g").call(yAxis);
