minor cosmetic change

master
Steve L. Nyemba 8 years ago
parent 7ab0d62a8e
commit 2884f3d78b

@ -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)
}

Loading…
Cancel
Save