Use AngularJS best practice naming conventions
Make chartObj attribute optionnal

Also declare dependencies on AngularJS