fixed d3 visualization (bar accuracy, redraws y axis on the fly, and
other misc graphic bug fixes)