tweaks for d3 chart width calc