I have this little Pie Chart

<html>
  <head>
    <script type="text/javascript" 
src="https://www.google.com/jsapi";></script>
    <script type="text/javascript">
      google.load('visualization', '1');
      google.setOnLoadCallback(drawVisualization);

      function drawVisualization() {
        var wrapper = new google.visualization.ChartWrapper({
          chartType: 'PieChart',
          dataSourceUrl: 
'https://docs.google.com/spreadsheets/d/1c34jIRfIeuh-rzr8VS7rPw168nJkflvWNpLR2de3KZw/edit#gid=0',
          query: 'SELECT A,C WHERE C > 1 ORDER BY C',
          options: {'title': 'States'},
          containerId: 'vis_div'
        });
        wrapper.draw()

        // No query callback handler needed!
      }
    </script>
  </head>
  <body style="font-family: Arial;border: 0 none;">
    <div id="vis_div" style="width: 600px; height: 400px;"></div>
  </body>
</html>

That is fed from a table with the following information sitting in a Google 
Sheets:


<https://lh3.googleusercontent.com/-EiLsJvgw5IU/Vec_SUTZw1I/AAAAAAAAAqg/62G5VWKVYD8/s1600/DataTable.JPG>

I want to have a DropDown where I can Select the Employees or Sales and 
depending on my selection the Pie Chart changes.

Something similar to what is describe in Here 
<https://developers.google.com/chart/interactive/docs/gallery/controls> but 
I'm not able to make it work.

Thank you very much

-- 
You received this message because you are subscribed to the Google Groups 
"Google Chart API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-chart-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-chart-api@googlegroups.com.
Visit this group at http://groups.google.com/group/google-chart-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to