ZingChart-AngularJS -s/o question

https://github.com/zingchart/ZingChart-AngularJS

by mschultz

HTML

<script src="http://cdn.zingchart.com/zingchart.min.js"></script>
<script src="https://rawgithub.com/zingchart/ZingChart-AngularJS/master/src/zingchart-angularjs.js"></script>
<div ng-controller="MainController">
    <zingchart id="chart-1" zc-values="myData" zc-json="myObj"></zingchart>
</div>

JavaScript

var app = angular.module('myApp',['zingchart-angularjs']);

app.controller('MainController', function($scope){
    $scope.myData = [[1,4,5,5,10], [9,3,4,5,6]] ;
    
    $scope.myObj = {
      type : 'bar',
      legend : {},
      series:[
          {
              backgroundColor : "#f44f4f"
          },
          {
              backgroundColor : "#7dc59c"
          }
        ]
    };
});

zingchart.node_click = function(p) {
  console.log(p);
  alert("Series : " + p.plotindex + " Node :" + p.nodeindex);
}