diff options
author | Hrishi Hiraskar | 2016-10-02 16:58:43 +0530 |
---|---|---|
committer | GitHub | 2016-10-02 16:58:43 +0530 |
commit | 1c9afd2d6b2614e3225d0c824b6392d176d2736d (patch) | |
tree | 36c37f661eeac812a5edae4262576cf8e1a509c3 /testing/SendLog/js/script.js | |
parent | ff0cd01cd2f9579a2d3a95ba3865fe896db2f52d (diff) | |
download | xcos-on-web-1c9afd2d6b2614e3225d0c824b6392d176d2736d.tar.gz xcos-on-web-1c9afd2d6b2614e3225d0c824b6392d176d2736d.tar.bz2 xcos-on-web-1c9afd2d6b2614e3225d0c824b6392d176d2736d.zip |
Update script.js
Diffstat (limited to 'testing/SendLog/js/script.js')
-rw-r--r-- | testing/SendLog/js/script.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/testing/SendLog/js/script.js b/testing/SendLog/js/script.js index 3cdf4db..e368531 100644 --- a/testing/SendLog/js/script.js +++ b/testing/SendLog/js/script.js @@ -15,18 +15,18 @@ var create_new_chart = function(id){ data.addColumn('number', 'x'); data.addColumn('number', 'y'); var options = { - 'title' : 'Figure '+id.toString(), - curveType: 'function', - hAxis: { - title: 'x', - }, - vAxis: { - title: 'y', - min: -2, - max: 2 - }, - 'width':550, - 'height':400 + 'title' : 'Figure '+id.toString(), + curveType: 'function', + hAxis: { + title: 'x', + }, + vAxis: { + title: 'y', + min: -2, + max: 2 + }, + 'width':550, + 'height':400 }; document.body.innerHTML += "<div id='chart-"+id.toString()+"'></div>"; var chart = new google.visualization.LineChart(document.getElementById('chart-'+id.toString())); @@ -69,9 +69,9 @@ var init = function(){ var id = chart_id_list[i]; // Get chart details var chart = new google.visualization.LineChart(document.getElementById('chart-'+id.toString())), - data = data_list[i], - options = option_list[i], - points = points_list[i]; + data = data_list[i], + options = option_list[i], + points = points_list[i]; // Add points for(var j=0;j<10 && !points.isEmpty();j++){ if(data.getNumberOfRows()>=40) |