title: Google Visualization - Set Pie Chart Slice Color
body: <p>I have a data table that is used for a pie chart and I need to set colors of slices based on a value in a row. For example, I have a table of car sales by type (e.g. lease, cash, finance) and I want to specify a color for each one. In the documentation, it seems possible to do this with bar charts, but I can't seem to do it with slices. I tried the following:</p>
  
  <pre><code>var pieChart = new google.visualization.ChartWrapper({
      options : {
          ...
          slices: [{color: 'black'}, {color: 'green'}, {color: 'red'}]
      }
  });
  </code></pre>
  
  <p>The colors get rendered but I want to specify <code>black</code> for <code>lease</code>. Any ideas on how I can get this to work?</p>