update chartForPercent.js direction bug