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', series:[ { backgroundColor : "#f44f4f" }, { backgroundColor : "#7dc59c" } ] }; });
<div ng-controller="MainController"> <zingchart id="chart-1" zc-values="myData" zc-json="myObj"></zingchart> </div>