i have the following code
{ codgoogle.charts.load('current', {'packages':['corechart']});
    google.charts.setOnLoadCallback(drawChart);
         function drawChart() {
          var jsonData = $.ajax({
          url: "test.json",
          dataType: "json",
          async: false
          }).responseText;
      var data = new google.visualization.DataTable(jsonData);
      var chart = new 
google.visualization.PieChart(document.getElementById('chart_div'));
      chart.draw(data, {width: 400, height: 240});
    }
Enter code here...[{"id":2365,"Name":"hyena"},{"id":3256,"Name":"lioness"},{
"id":25,"Name":"rabbit"},{"id":123,"Name":"porcupine"}]

so am trying to figure out how to create piechart since on the html side am 
getting table has columns



-- 
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/687eaa60-09e0-404c-a1e5-620d3d8e9416%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to