assets/js/app.js
// function used for updating x-axis var upon click on axis label
function used for updating x-axis var upon click on axis label
function used for updating x - axis var upon click on axis label
function renderXAxes(newx_scale, x_axis) {
  var bottomAxis = d3.axisBottom(newx_scale);
  x_axis.transition()
    .duration(1000)
    .call(bottomAxis);
  return x_axis;
}
function renderXAxes ( newx_scale , x_axis ) { var bottomAxis = d3 . axisBottom ( newx_scale ) ; x_axis . transition ( ) . duration ( 1000 ) . call ( bottomAxis ) ; return x_axis ; }
function used for updating x-axis var upon click on axis label
function used for updating x - axis var upon click on axis label