chart.append("g")
      .attr("class", "x-axis")
      .attr("transform", "translate(0, " + (height + 8) + ")")
      .call(xAxis);