title: Using the slices setoption in Google Apps Script
body: <p>I'm doing some testing with Google Charts service, and I'm trying to explode certain slices of my piechart. However, this isn't working as I'd hoped.</p>
  
  <p>My data source is a range A1:B30, and when I try to explode a range within it, for example the first 4 slices, I'd have thought this would do the trick:</p>
  
  <pre><code>setOption('slices',['0',{offset: 0.75},'1',{offset: 0.75},'2',{offset: 0.75},
                          '3',{offset: 0.75},'4',{offset: 0.75}])
  </code></pre>
  
  <p>However, that doesn't seem to work - I end up with this:</p>
  
  <p><a href="https://i.stack.imgur.com/h5AIn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/h5AIn.png" alt="Pie chart"></a></p>
  
  <p>It's weird - Has it got something to do with there being two elements (the A and B column values in the range) ?? That would explain if the pattern was it always skipped one slice, but at one point it skips two - strange!  Any advice?</p>
  
  <p>best wishes</p>
  
  <p>Dave</p>