blob: 6f332f1b9318142a2043ff8fc837c65babd418a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
var AlarmCount_BarChart_C3 = function (placeholdeC3) {
var callbackList = [];
var callback = function () {
}
callbackList.push(callback);
$.ajax({
"dataType": "json",
"type": "GET",
"url": "/web/rest/web/fm/count/total",
"data": null,
"Content-Type": "",
"success": function (json, textStatus, jqXHR) {
var alarmcount = json;
var inputData = [];
for (var i = 0; i < alarmcount.ackedCount.length; i++) {
inputData.push(alarmcount.unAckedCount[i] + alarmcount.ackedCount[i]);
}
//for test
inputData = [50, 10, 20, 40];
ICT_Bar_Chart_C3(placeholdeC3, inputData, callbackList);
},
"error": function () {
}
});
}
|