Mercurial > hg > webaudioevaluationtool
view analysis/analysis.js @ 566:45f5514b5077 Dev_main
Initial start to analysis pages
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Tue, 23 Feb 2016 17:56:23 +0000 |
parents | |
children | 04a64127ebd0 |
line wrap: on
line source
/* * Analysis script for WAET */ var chartContext; window.onload = function() { // Load the Visualization API and the corechart package. google.charts.load('current', {'packages':['corechart']}); chartContext = new Chart(); } function Chart() { this.data = null; this.getValueData = function() { var XMLHttp = new XMLHttpRequest(); XMLHttp.parent = this; XMLHttp.open("GET","comment_parser.php?format=JSON",true); XMLHttp.onload = function() { // Now we have the JSON data, extract this.parent.data = JSON.parse(this.responseText); } XMLHttp.send(); } this.drawMean = function() { // First we must get the value data } }