examples/dashboard.js
function generateTable() {
   var data = []

   for (var i=0; i<30; i++) {
     var row = []
     row.push(commands[Math.round(Math.random()*(commands.length-1))])
     row.push(Math.round(Math.random()*5))
     row.push(Math.round(Math.random()*100))
     data.push(row)
   }

   return {headers: ['Process', 'Cpu (%)', 'Memory'], data: data};
}
function generateTable() {
   var data = []

   for (var i=0; i<30; i++) {
     var row = []
     row.push(commands[Math.round(Math.random()*(commands.length-1))])
     row.push(Math.round(Math.random()*5))
     row.push(Math.round(Math.random()*100))
     data.push(row)
   }

   return {headers: ['Process', 'Cpu (%)', 'Memory'], data: data};
}
function generateTable ( ) { var data = [ ] for ( var i = 0 ; i < 30 ; i ++ ) { var row = [ ] row . push ( commands [ Math . round ( Math . random ( ) * ( commands . length - 1 ) ) ] ) row . push ( Math . round ( Math . random ( ) * 5 ) ) row . push ( Math . round ( Math . random ( ) * 100 ) ) data . push ( row ) } return { headers : [ 'Process' , 'Cpu (%)' , 'Memory' ] , data : data } ; }
set dummy data for table
set dummy data for table