update chartForPercent.js