diff --git a/dashboard.html b/dashboard.html index 684ee31..84d2470 100644 --- a/dashboard.html +++ b/dashboard.html @@ -7,8 +7,6 @@ - - @@ -34,29 +32,25 @@ } function getData(value){ } - google.charts.load('current', {'packages':['corechart']}); google.charts.setOnLoadCallback(drawVisualization); - function drawVisualization() { // Some raw data (not necessarily accurate) var data = google.visualization.arrayToDataTable([ - ['Month', 'Bolivia', 'Ecuador', 'Madagascar', 'Papua New Guinea', 'Rwanda', 'Average'], - ['2004/05', 165, 938, 522, 998, 450, 614.6], - ['2005/06', 135, 1120, 599, 1268, 288, 682], - ['2006/07', 157, 1167, 587, 807, 397, 623], - ['2007/08', 139, 1110, 615, 968, 215, 609.4], - ['2008/09', 136, 691, 629, 1026, 366, 569.6] + ['Day', 'Steps', 'Calories', 'Sleep', 'Activity', 'Average'], + ['01/05', 10, 94, 90, 84, 70], + ['01/06', 70, 90, 91, 84, 84], + ['01/07', 96, 98, 70, 93, 90], + ['01/08', 83, 90, 90, 75, 85], + ['01/09', 80, 90, 93, 95, 90] ]); - var options = { - title : 'Monthly Coffee Production by Country', - vAxis: {title: 'Cups'}, - hAxis: {title: 'Month'}, + title : 'Daily Fitness Goals', + vAxis: {title: 'Percent'}, + hAxis: {title: 'Days'}, seriesType: 'bars', series: {5: {type: 'line'}} }; - var chart = new google.visualization.ComboChart(document.getElementById('chart_div')); chart.draw(data, options); } @@ -79,7 +73,7 @@