From 1c9afd2d6b2614e3225d0c824b6392d176d2736d Mon Sep 17 00:00:00 2001 From: Hrishi Hiraskar Date: Sun, 2 Oct 2016 16:58:43 +0530 Subject: Update script.js --- testing/SendLog/js/script.js | 30 +++++++++++++++--------------- 1 file 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 += "
"; 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) -- cgit