Implemented XChart AngularJS directive.