Hi,

The 'colors' and 'is3D' options are options for the PieChart, not the
ChartWrapper (as outlined on the PieChart documentation
page<https://developers.google.com/chart/interactive/docs/gallery/piechart>).
According to the documentation page for the
ChartWrapper<https://developers.google.com/chart/interactive/docs/reference#chartwrapperobject>,
any options that you need to specify for the chart should go under the
'options' attribute of your ChartWrapper options. The following code should
work for you:
var wrapper = new google.visualization.ChartWrapper({
  dataSourceUrl: '
https://docs.google.com/spreadsheet/pub?key=0AjlSK7_zXoNHdHhpV1ZCTTJqdDRqeEtDREFLSXBnOGc&range=A1:B81&pub=1
',
  chartType: 'PieChart',
  containerId: 'visualization',
*  options: {
    colors: ['red', 'blue'],
    is3D: true
  }*
});

- Sergey



On Mon, Dec 17, 2012 at 2:44 PM, Sherrie <[email protected]> wrote:

> I am not sure I am doing this correctly.  I am just learning all this.  I
> am wanting to change the colors of the pie chart sections and my chart is
> dynamically populated by a google spreadsheet.
>
> <script type="text/javascript">
>       google.load('visualization', '1');
>     </script>
>     <script type="text/javascript">
>       function drawVisualization() {
>         // To see the data that this visualization uses, browse to
>         // http://spreadsheets.google.com/ccc?key=pCQbetd-CptGXxxQIG7VFIQ
>         var wrapper = new google.visualization.ChartWrapper({
>           dataSourceUrl: '
> https://docs.google.com/spreadsheet/pub?key=0AjlSK7_zXoNHdHhpV1ZCTTJqdDRqeEtDREFLSXBnOGc&range=A1:B81&pub=1
> ',
>           chartType: 'PieChart',
>           containerId: 'visualization',
>           colors: ['#e0440e', '#e6693e', '#ec8f6e', '#f3b49f', '#e0440e',
> '#e6693e', '#f6c7b6'],
>              is3D: true
>         });
>         wrapper.draw ();
>       }
>
>
>
>       google.setOnLoadCallback(drawVisualization);
>     </script>
>   </head>
>   <body style="font-family: Arial;border: 0 none;">
>     <div id="visualization" style="width: 600px; height: 400px;"></div>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-visualization-api/-/zlHw5mHCLccJ.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-visualization-api?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to