Sharpen-up some d3.js-based charts