Try add very basic barChart support.
Code refactoring of Chart part
Fix [-Wreorder] warning under clang