From 04520770b19b543c6c9686e07b6e96a6541c1be9 Mon Sep 17 00:00:00 2001 From: Sajal Sharma Date: Fri, 15 Sep 2017 21:27:18 -0700 Subject: [PATCH] Added integration for chart --- mainJs.js | 18 ++++++++++++++++++ profile.html | 6 ++++++ 2 files changed, 24 insertions(+) diff --git a/mainJs.js b/mainJs.js index e69de29..5a98af0 100644 --- a/mainJs.js +++ b/mainJs.js @@ -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 + }; diff --git a/profile.html b/profile.html index e69de29..e7abb25 100644 --- a/profile.html +++ b/profile.html @@ -0,0 +1,6 @@ + + + +
+ +