Using angularjs to abstract gcharts