title: google chart script generates unexpected error
body: <p>Everytime i try to load a chart from the data i have it says "unexpected error".</p>
  
  <p>I've loaded data from a datasheet with 1480 rows. Adding it the chart by the google menu works flawlessly.</p>
  
  <p>when i add it throught script, it fails with the following error:
  "Error encountered: An unexpected error ocurred"</p>
  
  <pre><code>function doGet() {
  
     var ss = SpreadsheetApp.getActiveSpreadsheet();
     var sheet = ss.getSheets()[0];
     var lastrow = (sheet.getLastRow());
     // Get the range of cells that store mining data.
     var mining = ss.getRange("A2:H"+lastrow);
  
     // For every row of mining data, generate a mining object.
     var miningObjects = getRowsData(sheet, mining);
  
  
  
       var dataload = Charts.newDataTable();
       dataload.addColumn(Charts.ColumnType.STRING, "Date");
       dataload.addColumn(Charts.ColumnType.NUMBER, "Hash");
       for(var i = 0; i&lt;miningObjects.length;i++){
         var support = miningObjects[i]
         //Browser.msgBox(Utilities.formatDate(support.date, "GMT-4", "yyyy-MM-dd HH:mm")+"")
         dataload.addRow([Utilities.formatDate(support.date, "GMT-3", "yyyy-MM-dd HH:mm")+"", support.hash])
  
       }
           dataload.build();
       var lineChart = Charts.newLineChart()
           .build();
  
          var control = Charts.newStringFilter()
          .setFilterColumnLabel("Date")
          .build();
  
  
       var dashboard = Charts.newDashboardPanel()
           .setDataTable(dataload)
           .bind(control, lineChart)
           .build();
  
       var uiApp = UiApp.createApplication();
  
       dashboard.add(uiApp.createVerticalPanel()
                     .add(uiApp.createHorizontalPanel()
                             .add(lineChart)
                             .setSpacing(10)));
  
           uiApp.add(dashboard);
           ss.show(uiApp);
  
  }
  </code></pre>
  
  <p>original spreadsheet is here. for testing purposes i'm only using the first two rows.</p>
  
  <p><a href="https://docs.google.com/spreadsheet/ccc?key=0AsNSSsm28wUfdFFKRU5SaFdKWkhNVWw0dTlPbXJvOVE&amp;usp=sharing" rel="nofollow">https://docs.google.com/spreadsheet/ccc?key=0AsNSSsm28wUfdFFKRU5SaFdKWkhNVWw0dTlPbXJvOVE&amp;usp=sharing</a></p>