: chartbody, 'xaxisbox': xaxisbox };
    }
}

var add_commas = function(s) {
  outs = '';
  while (s.length > 3) {
    outs = ',' + s.substring(s.length - 3, s.length) + outs;
    s = s.substring(0, s.length - 3);
  }
  outs = s + outs;
  return outs;
}

var procstat_last = {};

// Called to update the chart when a JSON response is received
var loaded = function(result) {
    //console.log('JSON loaded: ' + result);
    for (var i=0, len=result.length; i<len; i++) {
        node = result[i];
        //conso