Gordon surveyed 100 people about their favorite snack foods. This is what he found out:
50 people said that fruit was their favorite snack food.
25 people said that string cheese was their favorite snack food.
15 people said that peanuts were their favorite snack food.
10 people said that baby carrots were their favorite snack food.
Draw a circle graph that shows the information that Gordon collected.
What is:
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Snack', 'People'],
['Fruit', 50],
['String Cheese', 25],
['Peanuts', 15],
['Baby Carrots', 10]
]);
var options = {
title: 'Favorite Snack Foods'
};
var chart = new google.visualization.PieChart(document.getElementById('chart_div'));
chart.draw(data, options);
}