bottom axis

master
Matt Huntington 8 years ago
parent 1459f4cd11
commit 93fa1aec9a

@ -3,5 +3,5 @@ circle {
fill: black; fill: black;
} }
svg { svg {
border: 1px solid black; overflow: visible;
} }

@ -52,3 +52,9 @@ d3.selectAll('circle')
.attr('cx', function(datum, index){ .attr('cx', function(datum, index){
return xScale(parseTime(datum.date)); return xScale(parseTime(datum.date));
}); });
var bottomAxis = d3.axisBottom(xScale);
d3.select('svg')
.append('g')
.call(bottomAxis)
.attr('transform', 'translate(0,'+HEIGHT+')');

Loading…
Cancel
Save