i`ve got a similar problem here, but i make things a kinda different
way:
$.post("getvotes.php",
                                        {
                                                votes:1,
                                                type: opt

                                        }, function(datax) {

         vot=new
Array(parseInt(datax.YES),parseInt(datax.NO),parseInt(datax.DONO));
        google.load('visualization', '1', {'packages':['corechart']});
        google.setOnLoadCallback(drawChart(vot));
      function drawChart(vot) {

          car data = new google.visualization.DataTable();
data = new google.visualization.DataTable();
      data.addColumn('string', 'Answers');
      data.addColumn('number', 'Votes');
          data.addColumn('number', 'Votes');
          data.addColumn('number', 'Votes');
          data.addRows(3);
       data.setValue(0, 0, 'YES');
        data.setValue(0, 1,vot[0]);
                data.setValue(0, 2,0);
                data.setValue(0, 3,0);

       data.setValue(1, 0, 'No');
           data.setValue(1, 1,0);
        data.setValue(1, 2, vot[1]);
                data.setValue(1, 3,0);

      data.setValue(2, 0, 'NS/NC');
          data.setValue(2, 1,0);
          data.setValue(2, 2,0);
        data.setValue(2, 3, vot[2]);....},"json")

the thing is it is working realy well in mozila, chrome and even
IE9...i got problems with IE versions less then 9 :
SCRIPT5022: Every row given must be either null or an array.
default,corechart.I.js, line 152 character 63

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