Some bug correction.
Some indentation improvements on barChart code from Dispaly.js .