Refactoring chart update code
Merge branch 'gh-pages' of https://github.com/dantt/IA_Project into gh-pages