title: use variables in Google Chart Options Javascript
body: <p>I have created a Google Pie Chart using the following code:</p>
  
  <pre><code>var data = google.visualization.arrayToDataTable(array);
  var options = {
    title: 'Meta Share',
        is3D: true,
        sliceVisibilityThreshold: .04,
        slices: {  6 : {offset: 0.2},
        },
      };
  
      var chart = new google.visualization.PieChart(document.getElementById('chart_div'));
      chart.draw(data, options);
  }
  </code></pre>
  
  <p>I want to select a slice of the pie chart dynamically depending on what my user is doing. 
  I now have the following code:</p>
  
  <pre><code>var slice = 8;
  </code></pre>
  
  <p>I would now like to use this variable in the above code, however; replacing the '6' with the variable 'slice' does not work. </p>
  
  <p>Any suggestions? :) </p>