title: Google Spreadsheet Chart options returning same width for all charts
body: <p>Using apps script I want to increase the width and height of all the charts (any type of charts may be - generic) in a sheet. I tried the below code but it always alerts 371 x 600, no matter that charts are resized/shrink ed etc</p>
  
  <pre><code> var sheet = SpreadsheetApp.getActiveSheet();
   var n = sheet.getCharts().length;
  
   for (var i = 0; i &lt; n; i++) {
  
       var chart = sheet.getCharts()[i];
  
       var th = chart.getOptions().get('height');
       var tw = chart.getOptions().get('width');
  
       showAlert(th + "  " + tw);
  
       chart = chart.modify()
           .setOption('width', th + 20) //set increased width
           .setOption('height', tw + 20) //set increased height
           .build();
  
       sheet.updateChart(chart);
  
   }
  </code></pre>