Took a stab at getting it done via google charts api. Below code errors out 
with TypeError: undefined is not an object (evaluating 'a.aggregation[L]')

<html>

  <head>

    <script type="text/javascript" 
src="https://www.google.com/jsapi";></script>

    <script type="text/javascript">

      function getValues(values) {

        //return values.length;

        console.log("values " + values);

        return values;

      }

      google.load("visualization", "1", {packages:["corechart","table"]});

      google.setOnLoadCallback(drawChart);

      function drawChart() {

        var data1 = google.visualization.arrayToDataTable([

          ['Vendor', 'Answer'],

          ['A',     'yes'],

          ['B',      'no'],

          ['C',  'yes'],

          ['D', 'no'],

          ['E',    'yes']

        ]);

        getValues('ten')

        var result = google.visualization.data.group(data1, [1],[{'column': 
1, 'aggregation': google.visualization.data.count, 'type': 
'number'},{column:0, modifier:getValues, type:'string'}])

        getValues('ten')

        var options = {

          title: 'Vendor analysis'

        };


        //var chart = new 
google.visualization.PieChart(document.getElementById('piechart'));

        var table = new 
google.visualization.Table(document.getElementById('piechart'));

        //chart.draw(data, options);

        table.draw(result, {showRowNumber: true});

      }

    </script>

  </head>

  <body>

    <div id="piechart" style="width: 900px; height: 500px;"></div>

  </body>

</html>

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

Reply via email to