Update BUILD.md

master
Matt Huntington 8 years ago committed by GitHub
parent 016003e062
commit 7ed97a1115
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -380,11 +380,6 @@ xScale.domain([new Date('2017-10-1'), new Date('2017-10-31')]);
var parseTime = d3.timeParse("%B%e, %Y at %-I:%M%p"); //this format matches our data in the runs array var parseTime = d3.timeParse("%B%e, %Y at %-I:%M%p"); //this format matches our data in the runs array
var formatTime = d3.timeFormat("%B%e, %Y at %-I:%M%p"); //this format matches our data in the runs array var formatTime = d3.timeFormat("%B%e, %Y at %-I:%M%p"); //this format matches our data in the runs array
d3.selectAll('circle')
.attr('cx', function(datum, index){
return xScale(parseTime(datum.date)); //use parseTime to convert the date string property on the datum object to a Date object, which xScale then converts to a visual value
});
``` ```
and change it to: and change it to:

Loading…
Cancel
Save