score:0

Accepted answer

Changed translate attribute to 0 which was offsetting the axis.

 vis.append("svg:g")
                      .attr("class", "x axis")
                      .attr("transform", "translate(0," + (HEIGHT - MARGINS.bottom + 20) + ")")
                      .call(xAxis);

Related Query

More Query from same tag