This commit is contained in:
Arjun Patel
2017-09-15 22:01:47 -07:00
2 changed files with 24 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
google.charts.load('current', {'packages':['corechart']});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Task', 'Hours per Day'],
['Food and Dining', 11],
['Clothing', 2],
['Entertainment', 2],
['Transportation', 7],
['Other', 1]
]);
var options = {
title: 'Spending'
is3D: true
};
+6
View File
@@ -0,0 +1,6 @@
<html>
<head>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<div id="piechart" style="width: 900px; height: 500px;"></div>
</head>
</html>