only need parseTime

master
Matt Huntington 8 years ago
parent da1e90572a
commit fdf9f8fa64

@ -36,6 +36,7 @@ var xScale = d3.scaleTime();
xScale.range([0,WIDTH]);
xScale.domain([new Date('2017-10-1'), new Date('2017-10-31')]);
var parseTime = d3.timeParse("%B%e, %Y");
d3.selectAll('circle')
.attr('cx', function(datum, index){
return xScale(parseTime(datum.date));

Loading…
Cancel
Save