re-factor barChart options