Commit a7ae5557 authored by Piers Williams's avatar Piers Williams

Added all data

parent 5a336788
......@@ -57,7 +57,7 @@ function loadAndDisplay(){
}
function updateGraph(json){
var data = [["Your Agent"]];
var data = ["Your Agent"];
$.each(data, function(index, value){
for(var i = 0; i < 26; i++) value.push(0);
......@@ -66,9 +66,11 @@ function updateGraph(json){
data[0][value.score + 1]+= 1;
});
allData.push();
chart.load({
columns: data
columns: allData
});
}
......@@ -101,5 +103,6 @@ function doStuffGraph(){
}
var chart = null;
var allData = [];
$(document).ready(function(){loadAndDisplay();doStuffGraph();});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment