app2.js
//Pushing all of the information back into the allbus mall array//
Pushing all of the information back into the allbus mall array
Pushing all of the information back into the allbus mall array
function makeNamesArray(){
  for(var i=0; i<allBusMall.length; i++){
    names.push(allBusMall[i].title);
    votes.push(allBusMall[i].votes);
    views.push(allBusMall[i].votes);
  }
  generateChart();
}
function makeNamesArray ( ) { for ( var i = 0 ; i < allBusMall . length ; i ++ ) { names . push ( allBusMall [ i ] . title ) ; votes . push ( allBusMall [ i ] . votes ) ; views . push ( allBusMall [ i ] . votes ) ; } generateChart ( ) ; }
Pushing all of the information back into the allbus mall array
Pushing all of the information back into the allbus mall array