{"action":"created","comment":{"url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/pulls/comments/186256431","pull_request_review_id":117807797,"id":186256431,"diff_hunk":"@@ -0,0 +1,68 @@\n+\"use strict\";\n+\n+define([\"../analytics-util\", \"./analytics-graph\"], function(util, Graph) {\n+\n+  function LineGraph(elementId, keyName, valueName, startDate, endDate, color) {\n+    Graph.call(this, elementId, keyName, valueName, startDate, endDate, color);\n+  }\n+\n+  LineGraph.prototype = Object.create(Graph.prototype);\n+  LineGraph.prototype.constructor = LineGraph;\n+\n+  LineGraph.prototype.updateChart = function(startDate, endDate) {\n+    var that = this;\n+    that._startDate = startDate;\n+    that._endDate = endDate;\n+\n+    Graph.prototype.getKeysAndValues.call(this)\n+      .then(function (keysAndValues) {\n+        if (that._chart !== undefined) {\n+          that._chart.data.labels = keysAndValues.keys;\n+          that._chart.data.datasets[0].data = keysAndValues.values;\n+          that._chart.update();\n+        } else {\n+          var brandPrimary = that._color.p;\n+          var brandSecondary = that._color.s;\n+          var LINECHART = $(that._elementID);\n+\n+          that._chart = new Chart(LINECHART, {\n+            type: \"line\",\n+            options: {\n+              legend: {\n+                display: false\n+              }\n+            },\n+            data: {\n+              labels: keysAndValues.keys,\n+              datasets: [\n+                {\n+                  label: \"Donations per day\",","path":"app/static/admin/js/pages/analytics/graph/analytics-line-graph.js","position":39,"original_position":39,"commit_id":"7699172a37b20d44db448b8716ec72419c13d982","original_commit_id":"7699172a37b20d44db448b8716ec72419c13d982","user":{"login":"leesw98","id":19914676,"avatar_url":"https://avatars3.githubusercontent.com/u/19914676?v=4","gravatar_id":"","url":"https://api.github.com/users/leesw98","html_url":"https://github.com/leesw98","followers_url":"https://api.github.com/users/leesw98/followers","following_url":"https://api.github.com/users/leesw98/following{/other_user}","gists_url":"https://api.github.com/users/leesw98/gists{/gist_id}","starred_url":"https://api.github.com/users/leesw98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leesw98/subscriptions","organizations_url":"https://api.github.com/users/leesw98/orgs","repos_url":"https://api.github.com/users/leesw98/repos","events_url":"https://api.github.com/users/leesw98/events{/privacy}","received_events_url":"https://api.github.com/users/leesw98/received_events","type":"User","site_admin":false},"body":"No need to actually change now, but FYI. This should also be dynamic. ","created_at":"2018-05-05T08:28:09Z","updated_at":"2018-05-05T08:37:10Z","html_url":"https://github.com/CodeTheChangeUBC/reBOOT/pull/162#discussion_r186256431","pull_request_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/pulls/162","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/pulls/comments/186256431"},"html":{"href":"https://github.com/CodeTheChangeUBC/reBOOT/pull/162#discussion_r186256431"},"pull_request":{"href":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/pulls/162"}}},"pull_request":{"url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/pulls/162","id":186145221,"html_url":"https://github.com/CodeTheChangeUBC/reBOOT/pull/162","diff_url":"https://github.com/CodeTheChangeUBC/reBOOT/pull/162.diff","patch_url":"https://github.com/CodeTheChangeUBC/reBOOT/pull/162.patch","issue_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/issues/162","number":162,"state":"open","locked":false,"title":"Joon/refactor graph and date range","user":{"login":"hurjun1995","id":30101613,"avatar_url":"https://avatars3.githubusercontent.com/u/30101613?v=4","gravatar_id":"","url":"https://api.github.com/users/hurjun1995","html_url":"https://github.com/hurjun1995","followers_url":"https://api.github.com/users/hurjun1995/followers","following_url":"https://api.github.com/users/hurjun1995/following{/other_user}","gists_url":"https://api.github.com/users/hurjun1995/gists{/gist_id}","starred_url":"https://api.github.com/users/hurjun1995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hurjun1995/subscriptions","organizations_url":"https://api.github.com/users/hurjun1995/orgs","repos_url":"https://api.github.com/users/hurjun1995/repos","events_url":"https://api.github.com/users/hurjun1995/events{/privacy}","received_events_url":"https://api.github.com/users/hurjun1995/received_events","type":"User","site_admin":false},"body":"-Refactored Graph to use js object\r\n-Updated UI of analytics\r\n-Updated 2 decimal places & put $ for value","created_at":"2018-05-05T07:57:02Z","updated_at":"2018-05-05T08:37:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"abe0ab883789b41b46b052fd8f321e2c71498ad0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/pulls/162/commits","review_comments_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/pulls/162/comments","review_comment_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/issues/162/comments","statuses_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/statuses/7699172a37b20d44db448b8716ec72419c13d982","head":{"label":"CodeTheChangeUBC:joon/refactor-graph-and-date-range","ref":"joon/refactor-graph-and-date-range","sha":"7699172a37b20d44db448b8716ec72419c13d982","user":{"login":"CodeTheChangeUBC","id":17996804,"avatar_url":"https://avatars1.githubusercontent.com/u/17996804?v=4","gravatar_id":"","url":"https://api.github.com/users/CodeTheChangeUBC","html_url":"https://github.com/CodeTheChangeUBC","followers_url":"https://api.github.com/users/CodeTheChangeUBC/followers","following_url":"https://api.github.com/users/CodeTheChangeUBC/following{/other_user}","gists_url":"https://api.github.com/users/CodeTheChangeUBC/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeTheChangeUBC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeTheChangeUBC/subscriptions","organizations_url":"https://api.github.com/users/CodeTheChangeUBC/orgs","repos_url":"https://api.github.com/users/CodeTheChangeUBC/repos","events_url":"https://api.github.com/users/CodeTheChangeUBC/events{/privacy}","received_events_url":"https://api.github.com/users/CodeTheChangeUBC/received_events","type":"Organization","site_admin":false},"repo":{"id":106762568,"name":"reBOOT","full_name":"CodeTheChangeUBC/reBOOT","owner":{"login":"CodeTheChangeUBC","id":17996804,"avatar_url":"https://avatars1.githubusercontent.com/u/17996804?v=4","gravatar_id":"","url":"https://api.github.com/users/CodeTheChangeUBC","html_url":"https://github.com/CodeTheChangeUBC","followers_url":"https://api.github.com/users/CodeTheChangeUBC/followers","following_url":"https://api.github.com/users/CodeTheChangeUBC/following{/other_user}","gists_url":"https://api.github.com/users/CodeTheChangeUBC/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeTheChangeUBC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeTheChangeUBC/subscriptions","organizations_url":"https://api.github.com/users/CodeTheChangeUBC/orgs","repos_url":"https://api.github.com/users/CodeTheChangeUBC/repos","events_url":"https://api.github.com/users/CodeTheChangeUBC/events{/privacy}","received_events_url":"https://api.github.com/users/CodeTheChangeUBC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CodeTheChangeUBC/reBOOT","description":"Development Repository for reBOOT Canada!","fork":false,"url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT","forks_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/forks","keys_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/teams","hooks_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/hooks","issue_events_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/issues/events{/number}","events_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/events","assignees_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/assignees{/user}","branches_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/branches{/branch}","tags_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/tags","blobs_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/git/refs{/sha}","trees_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/statuses/{sha}","languages_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/languages","stargazers_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/stargazers","contributors_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/contributors","subscribers_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/subscribers","subscription_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/subscription","commits_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/commits{/sha}","git_commits_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/git/commits{/sha}","comments_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/comments{/number}","issue_comment_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/issues/comments{/number}","contents_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/contents/{+path}","compare_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/merges","archive_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/downloads","issues_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/issues{/number}","pulls_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/pulls{/number}","milestones_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/milestones{/number}","notifications_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/labels{/name}","releases_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/releases{/id}","deployments_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/deployments","created_at":"2017-10-13T01:22:05Z","updated_at":"2018-05-02T06:44:36Z","pushed_at":"2018-05-05T07:57:03Z","git_url":"git://github.com/CodeTheChangeUBC/reBOOT.git","ssh_url":"git@github.com:CodeTheChangeUBC/reBOOT.git","clone_url":"https://github.com/CodeTheChangeUBC/reBOOT.git","svn_url":"https://github.com/CodeTheChangeUBC/reBOOT","homepage":"","size":1716,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":15,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":15,"watchers":6,"default_branch":"master"}},"base":{"label":"CodeTheChangeUBC:feature/analytics","ref":"feature/analytics","sha":"9e38054e85003e1a7a48c70978c14835c9b479de","user":{"login":"CodeTheChangeUBC","id":17996804,"avatar_url":"https://avatars1.githubusercontent.com/u/17996804?v=4","gravatar_id":"","url":"https://api.github.com/users/CodeTheChangeUBC","html_url":"https://github.com/CodeTheChangeUBC","followers_url":"https://api.github.com/users/CodeTheChangeUBC/followers","following_url":"https://api.github.com/users/CodeTheChangeUBC/following{/other_user}","gists_url":"https://api.github.com/users/CodeTheChangeUBC/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeTheChangeUBC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeTheChangeUBC/subscriptions","organizations_url":"https://api.github.com/users/CodeTheChangeUBC/orgs","repos_url":"https://api.github.com/users/CodeTheChangeUBC/repos","events_url":"https://api.github.com/users/CodeTheChangeUBC/events{/privacy}","received_events_url":"https://api.github.com/users/CodeTheChangeUBC/received_events","type":"Organization","site_admin":false},"repo":{"id":106762568,"name":"reBOOT","full_name":"CodeTheChangeUBC/reBOOT","owner":{"login":"CodeTheChangeUBC","id":17996804,"avatar_url":"https://avatars1.githubusercontent.com/u/17996804?v=4","gravatar_id":"","url":"https://api.github.com/users/CodeTheChangeUBC","html_url":"https://github.com/CodeTheChangeUBC","followers_url":"https://api.github.com/users/CodeTheChangeUBC/followers","following_url":"https://api.github.com/users/CodeTheChangeUBC/following{/other_user}","gists_url":"https://api.github.com/users/CodeTheChangeUBC/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeTheChangeUBC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeTheChangeUBC/subscriptions","organizations_url":"https://api.github.com/users/CodeTheChangeUBC/orgs","repos_url":"https://api.github.com/users/CodeTheChangeUBC/repos","events_url":"https://api.github.com/users/CodeTheChangeUBC/events{/privacy}","received_events_url":"https://api.github.com/users/CodeTheChangeUBC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CodeTheChangeUBC/reBOOT","description":"Development Repository for reBOOT Canada!","fork":false,"url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT","forks_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/forks","keys_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/teams","hooks_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/hooks","issue_events_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/issues/events{/number}","events_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/events","assignees_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/assignees{/user}","branches_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/branches{/branch}","tags_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/tags","blobs_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/git/refs{/sha}","trees_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/statuses/{sha}","languages_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/languages","stargazers_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/stargazers","contributors_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/contributors","subscribers_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/subscribers","subscription_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/subscription","commits_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/commits{/sha}","git_commits_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/git/commits{/sha}","comments_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/comments{/number}","issue_comment_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/issues/comments{/number}","contents_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/contents/{+path}","compare_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/merges","archive_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/downloads","issues_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/issues{/number}","pulls_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/pulls{/number}","milestones_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/milestones{/number}","notifications_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/labels{/name}","releases_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/releases{/id}","deployments_url":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/deployments","created_at":"2017-10-13T01:22:05Z","updated_at":"2018-05-02T06:44:36Z","pushed_at":"2018-05-05T07:57:03Z","git_url":"git://github.com/CodeTheChangeUBC/reBOOT.git","ssh_url":"git@github.com:CodeTheChangeUBC/reBOOT.git","clone_url":"https://github.com/CodeTheChangeUBC/reBOOT.git","svn_url":"https://github.com/CodeTheChangeUBC/reBOOT","homepage":"","size":1716,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":15,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":15,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/pulls/162"},"html":{"href":"https://github.com/CodeTheChangeUBC/reBOOT/pull/162"},"issue":{"href":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/issues/162"},"comments":{"href":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/issues/162/comments"},"review_comments":{"href":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/pulls/162/comments"},"review_comment":{"href":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/pulls/162/commits"},"statuses":{"href":"https://api.github.com/repos/CodeTheChangeUBC/reBOOT/statuses/7699172a37b20d44db448b8716ec72419c13d982"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"leesw98"}}