@ -128,15 +128,17 @@ var attachDragHandlers = function(){
};
//create axes
varxAxis=d3.axisBottom(xScale);
varyAxis=d3.axisLeft(yScale);
d3.select('svg').append('g').attr('id','x-axis').attr('transform','translate(0,'+HEIGHT+')').call(xAxis);//x axes must be moved to bottom of svg
d3.select('svg').append('g').attr('id','y-axis').call(yAxis);//y axis is good as it is
varxAxis=d3.axisBottom(xScale);//create axis, not yet applied
varyAxis=d3.axisLeft(yScale);//create axis, not yet applied
d3.select('svg').append('g').attr('id','x-axis').attr('transform','translate(0,'+HEIGHT+')').call(xAxis);//apply xAxis, also, x axis must be moved to bottom of svg
d3.select('svg').append('g').attr('id','y-axis').call(yAxis);//y axis is good as it is, apply it