Strabon

changeset 1236:7dc5f2a42690

fixed bug that caused problem in charts after many requests with chart as result format
author Konstantina Bereta <Konstantina.Bereta@di.uoa.gr>
date Thu Jul 18 19:54:45 2013 +0300 (2013-07-18)
parents 54eaaad0b72d
children 32c838570030
files endpoint/src/main/java/eu/earthobservatory/org/StrabonEndpoint/StrabonBeanWrapper.java
line diff
     1.1 --- a/endpoint/src/main/java/eu/earthobservatory/org/StrabonEndpoint/StrabonBeanWrapper.java	Thu Jul 18 16:51:29 2013 +0300
     1.2 +++ b/endpoint/src/main/java/eu/earthobservatory/org/StrabonEndpoint/StrabonBeanWrapper.java	Thu Jul 18 19:54:45 2013 +0300
     1.3 @@ -205,7 +205,7 @@
     1.4  					arr.add(0, bindingNames.get(0));
     1.5  					arr.add(1, bindingNames.get(1));
     1.6  
     1.7 -					gChartString +="var data = new google.visualization.DataTable();";
     1.8 +					gChartString ="var data = new google.visualization.DataTable();";
     1.9  					gChartString += "data.addColumn('string',\'"+arr.get(0)+"');\n";
    1.10  					gChartString += "data.addColumn('number',\'"+arr.get(1)+"');\n";
    1.11  					
    1.12 @@ -231,7 +231,7 @@
    1.13  					int varNum = bindingNames.size();
    1.14  					ArrayList<String> arr = new ArrayList<String>(varNum);
    1.15  
    1.16 -					gChartString += "var data = google.visualization.arrayToDataTable([[";
    1.17 +					gChartString = "var data = google.visualization.arrayToDataTable([[";
    1.18  					for(int j=0; j<varNum; j++){
    1.19  						String chartValue =bindingNames.get(j);
    1.20  							gChartString += "'"+chartValue+"'";