It's a one-liner: just use 'BarChart' instead 'PieChart' in the chartType 
parameter for the ChartWrapper that defines the chart:

var pie = new google.visualization.ChartWrapper({
  'chartType': 'BarChart',
  ...
});

For better clarity, you might also want to update the variable from 'pie' to 
'barchart' (or whatever you prefer) and update the set of options to match 
what you need, so for example:

        var *chart* = new google.visualization.ChartWrapper({
*          'chartType': 'BarChart',*
          'containerId': 'chart1',
          'options': {
            'width': 300,
            'height': 300,
            'legend': 'none',
            'title': 'Donuts eaten per person',
          },
          // Instruct the piechart to use colums 0 (Name) and 3 (Donuts 
Eaten)
          // from the 'data' DataTable.
          'view': {'columns': [0, 3]}
        });

        ....

        new google.visualization.Dashboard(document.getElementById(
'dashboard')).
            bind([slider, categoryPicker], [*chart*, table]).
            draw(data);

/R.

-- 
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