|
|
|
@ -234,6 +234,7 @@ monitor.processes.summary.init = function(logs){
|
|
|
|
|
conf.data = { labels: labels, backgroundColor:colors }
|
|
|
|
|
var xr = [], xi = [], xc = [],xr_bg = [],xc_bg = [],xi_bg = []
|
|
|
|
|
jx.utils.patterns.visitor(labels, function (id) {
|
|
|
|
|
|
|
|
|
|
var rows = logs[id]
|
|
|
|
|
var index = xr.length
|
|
|
|
|
xr_bg[index] = RUNNING_COLOR
|
|
|
|
@ -259,8 +260,7 @@ monitor.processes.summary.init = function(logs){
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
conf.data.datasets = [{ label: 'running', data:xr,backgroundColor:xr_bg},{label:'crash',data:xc,backgroundColor:xc_bg},{label:'idle',data:xi,backgroundColor:xi_bg} ]
|
|
|
|
|
console.log(conf.data.datasets)
|
|
|
|
|
conf.data.datasets = [{ label: 'Running', data:xr,backgroundColor:xr_bg},{label:'Crash',data:xc,backgroundColor:xc_bg},{label:'Idle',data:xi,backgroundColor:xi_bg} ]
|
|
|
|
|
chart = new Chart(context, conf)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|