comparison analysis/analysis.js @ 1864:2cdbbf380e6b

Initial start to analysis pages
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Tue, 23 Feb 2016 17:56:23 +0000
parents
children 04a64127ebd0
comparison
equal deleted inserted replaced
1863:8f75281d0f8c 1864:2cdbbf380e6b
1 /*
2 * Analysis script for WAET
3 */
4
5 var chartContext;
6 window.onload = function() {
7 // Load the Visualization API and the corechart package.
8 google.charts.load('current', {'packages':['corechart']});
9 chartContext = new Chart();
10 }
11
12 function Chart() {
13 this.data = null;
14
15 this.getValueData = function() {
16 var XMLHttp = new XMLHttpRequest();
17 XMLHttp.parent = this;
18 XMLHttp.open("GET","comment_parser.php?format=JSON",true);
19 XMLHttp.onload = function() {
20 // Now we have the JSON data, extract
21 this.parent.data = JSON.parse(this.responseText);
22 }
23 XMLHttp.send();
24 }
25
26 this.drawMean = function() {
27 // First we must get the value data
28 }
29 }