fixes d3 teacher graph x axis bug