<html>
<head>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['ASW Africano/EUA', 1],
['CEU Utah/Europeia', 1],
['CHB Pequim/China', 1],
['CHD Chinesa/Colorado', 1],
['GIH Guzerate, Texas', 1],
['JPT Toquio/Japao', 1],
['LWK Luhya/Quenia', 1],
['MXL Mexicana/Los Angeles,California', 1],
['MKK Maasai/Kinyawa, Quenia', 1],
['TSI Toscani/Italia', 1],
['YRI Ioruba/Nigeria', 1]
]);
var options = {
};
var chart = new google.visualization.PieChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
</script>
</head>
<body>
<div id="chart_div" style="width: 900px; height: 500px;"></div>
</body>
</html>
---------------------------------------------------------------------------------------------------------
fonte : https://developers.google.com/chart/
0 comentários:
Post a Comment