0
Content.JSON 아래주어진 AngularJS와 dxChart에 변수
[{
status: "Allocated",
count: 45
}, {
status: "Bench",
count: 89
}, {
status: "Mobile",
count: 12
}, {
status: "Project",
count: 1
}, {
status: "SAP",
count: 18
}, {
status: "Testing",
count: 68
}, {
status: "vvvv",
count: 70
}];
를 JSON의 URL 데이터를 분석 할 수 어떻게 JSON URL이 데이터를 가져 오기 위해 노력하고 있지만, 콘솔 내가 오류
아래에 무엇입니까 내 AngularJS와 모듈이다dxChart.js : 9 E2001 - 유효하지 않은 데이터 소스. 참조 : http://js.devexpress.com/error/15_2/E2001
angular.module('myApp')
.controller('valueController', ['$scope', '$http', '$window', function ($scope, $http, $window) {
var mainInfo = null;
$http({
method : "GET",
url : "/JSON/Content.json",
dataType: 'json',
}).then(function mySucces(response) {
mainInfo = response.data;
}, function myError(response)
{
$window.alert(response.statusText);
});
$scope.chartOptions = {
dataSource: mainInfo,
series: {
argumentField: "status",
valueField: "count",
name: "SIDG Java",
type: "bar",
color: '#1899dd'
}
};
}]);