smooth doubling for d3.js
Made global bars scaling