title: pivottable.js Aggregator
body: <p>I'm using the pivottable.js plugin <a href="https://github.com/nicolaskruchten/pivottable" rel="nofollow">here</a>. </p>
  
  <p>pivottable.js aggregator <a href="https://github.com/nicolaskruchten/pivottable/wiki/Aggregators" rel="nofollow">documentation</a>.</p>
  
  <p>I want to to use my data for "Users" as the value in the pivot table cells. Right now I am accessing user data from my info[] array. I also have it set as a "row" value currently. I want to modify this so that "Users" will be my VALUE in the cells of the table.</p>
  
  <pre><code>function refreshTable(){
  
  console.log("Starting Pivot Table Population");
  
  //ajax start
  $.get(
      "table.php",
      function(data){
  
          //loop through the data and feed to the pivotUI
          var info = [];
          for (var ii=0; ii &lt; array.length; ii++) {
              info.push({
                  Skill: array[ii][0],
                  Users: array[ii][3],
                  IOT: array[ii][1],
                  IMT: array[ii][2],
                  Level: array[ii][4]});
          }
          console.log(info);
  
          //pivot UI
          $('#output').show();
          $("#output").pivotUI(
              info,
              {
                  rows: ["Row","Users"],
                  cols: ["Col1","Col2","Col3"]
              }
          );
       }
  
          //end of ajax function "TYPE"
          , "json")
  };
  </code></pre>