Google Playground code
Google Visualization API Sample google.load('visualization', '1', {packages: ['corechart']}); function drawVisualization() { // Create and populate the data table. var data = google.visualization.arrayToDataTable([ ['Age', 'Students of MACJ 2015'], ['21', 7], ['22', 4], ['23', 3], ['24', 1], ['25', 1], ['26', 1], ]); // Create and draw the visualization. new google.visualization.PieChart(document.getElementById('visualization')). draw(data, {title:"Age wise distribution of students of MACJ 2015"}); } google.setOnLoadCallback(drawVisualization);












