{"action":"created","comment":{"url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/comments/37172298","id":37172298,"diff_hunk":"@@ -16,18 +22,64 @@ Template.chartsLayout.rendered = function () {\n       'request_ip_country',\n       'request_ip',\n       'response_time',\n-      'request_path'\n+      'request_path',\n+      'request_ip_location.lon',\n+      'request_ip_location.lat'\n     ]\n   };\n-  // Drawing the chart\n-  drawChart(input)\n+\n+  // get data\n+  instance.getDashboardData(input);\n+\n+  // render map\n+  instance.renderMap();\n+\n+  // set an autorun function\n+  instance.autorun(function () {\n+\n+    console.log(\"Autorun ->\");\n+\n+    // dashboard data from reactive variable\n+    var mapData = instance.mapData.get();\n+\n+    // checks if data has type of object, by default it is string\n+    if (typeof mapData === 'object') {\n+\n+      console.log(mapData);","path":"client/views/dashboard/charts/charts.js","position":50,"original_position":50,"commit_id":"b136ebd5c5b563cb88923890e517b7087961135f","original_commit_id":"b136ebd5c5b563cb88923890e517b7087961135f","user":{"login":"brylie","id":17307,"avatar_url":"https://avatars.githubusercontent.com/u/17307?v=3","gravatar_id":"","url":"https://api.github.com/users/brylie","html_url":"https://github.com/brylie","followers_url":"https://api.github.com/users/brylie/followers","following_url":"https://api.github.com/users/brylie/following{/other_user}","gists_url":"https://api.github.com/users/brylie/gists{/gist_id}","starred_url":"https://api.github.com/users/brylie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brylie/subscriptions","organizations_url":"https://api.github.com/users/brylie/orgs","repos_url":"https://api.github.com/users/brylie/repos","events_url":"https://api.github.com/users/brylie/events{/privacy}","received_events_url":"https://api.github.com/users/brylie/received_events","type":"User","site_admin":false},"body":"Cleanup.","created_at":"2015-08-17T09:46:50Z","updated_at":"2015-08-17T09:46:50Z","html_url":"https://github.com/apinf/api-umbrella-dashboard/pull/378#discussion_r37172298","pull_request_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/378","_links":{"self":{"href":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/comments/37172298"},"html":{"href":"https://github.com/apinf/api-umbrella-dashboard/pull/378#discussion_r37172298"},"pull_request":{"href":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/378"}}},"pull_request":{"url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/378","id":42468372,"html_url":"https://github.com/apinf/api-umbrella-dashboard/pull/378","diff_url":"https://github.com/apinf/api-umbrella-dashboard/pull/378.diff","patch_url":"https://github.com/apinf/api-umbrella-dashboard/pull/378.patch","issue_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/378","number":378,"state":"open","locked":false,"title":"Feature/heapmap refresh","user":{"login":"frenchbread","id":2122679,"avatar_url":"https://avatars.githubusercontent.com/u/2122679?v=3","gravatar_id":"","url":"https://api.github.com/users/frenchbread","html_url":"https://github.com/frenchbread","followers_url":"https://api.github.com/users/frenchbread/followers","following_url":"https://api.github.com/users/frenchbread/following{/other_user}","gists_url":"https://api.github.com/users/frenchbread/gists{/gist_id}","starred_url":"https://api.github.com/users/frenchbread/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frenchbread/subscriptions","organizations_url":"https://api.github.com/users/frenchbread/orgs","repos_url":"https://api.github.com/users/frenchbread/repos","events_url":"https://api.github.com/users/frenchbread/events{/privacy}","received_events_url":"https://api.github.com/users/frenchbread/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-14T15:36:30Z","updated_at":"2015-08-17T09:46:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc3c216a8fa2e8702806b33f568df8b7811fe821","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/378/commits","review_comments_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/378/comments","review_comment_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/378/comments","statuses_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/statuses/b136ebd5c5b563cb88923890e517b7087961135f","head":{"label":"apinf:feature/heapmap-refresh","ref":"feature/heapmap-refresh","sha":"b136ebd5c5b563cb88923890e517b7087961135f","user":{"login":"apinf","id":9882661,"avatar_url":"https://avatars.githubusercontent.com/u/9882661?v=3","gravatar_id":"","url":"https://api.github.com/users/apinf","html_url":"https://github.com/apinf","followers_url":"https://api.github.com/users/apinf/followers","following_url":"https://api.github.com/users/apinf/following{/other_user}","gists_url":"https://api.github.com/users/apinf/gists{/gist_id}","starred_url":"https://api.github.com/users/apinf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apinf/subscriptions","organizations_url":"https://api.github.com/users/apinf/orgs","repos_url":"https://api.github.com/users/apinf/repos","events_url":"https://api.github.com/users/apinf/events{/privacy}","received_events_url":"https://api.github.com/users/apinf/received_events","type":"Organization","site_admin":false},"repo":{"id":31646449,"name":"api-umbrella-dashboard","full_name":"apinf/api-umbrella-dashboard","owner":{"login":"apinf","id":9882661,"avatar_url":"https://avatars.githubusercontent.com/u/9882661?v=3","gravatar_id":"","url":"https://api.github.com/users/apinf","html_url":"https://github.com/apinf","followers_url":"https://api.github.com/users/apinf/followers","following_url":"https://api.github.com/users/apinf/following{/other_user}","gists_url":"https://api.github.com/users/apinf/gists{/gist_id}","starred_url":"https://api.github.com/users/apinf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apinf/subscriptions","organizations_url":"https://api.github.com/users/apinf/orgs","repos_url":"https://api.github.com/users/apinf/repos","events_url":"https://api.github.com/users/apinf/events{/privacy}","received_events_url":"https://api.github.com/users/apinf/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apinf/api-umbrella-dashboard","description":"Dashboard component for the open-source API management platform API Umbrella.","fork":false,"url":"https://api.github.com/repos/apinf/api-umbrella-dashboard","forks_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/forks","keys_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/teams","hooks_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/hooks","issue_events_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/events","assignees_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/tags","blobs_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/languages","stargazers_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/stargazers","contributors_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/contributors","subscribers_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/subscribers","subscription_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/subscription","commits_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/merges","archive_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/downloads","issues_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/labels{/name}","releases_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/releases{/id}","created_at":"2015-03-04T08:33:18Z","updated_at":"2015-06-27T05:24:17Z","pushed_at":"2015-08-17T09:31:31Z","git_url":"git://github.com/apinf/api-umbrella-dashboard.git","ssh_url":"git@github.com:apinf/api-umbrella-dashboard.git","clone_url":"https://github.com/apinf/api-umbrella-dashboard.git","svn_url":"https://github.com/apinf/api-umbrella-dashboard","homepage":null,"size":15282,"stargazers_count":1,"watchers_count":1,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":101,"forks":2,"open_issues":101,"watchers":1,"default_branch":"master"}},"base":{"label":"apinf:develop","ref":"develop","sha":"2961e7317a2c5770ae41e8073d29bc20405f288b","user":{"login":"apinf","id":9882661,"avatar_url":"https://avatars.githubusercontent.com/u/9882661?v=3","gravatar_id":"","url":"https://api.github.com/users/apinf","html_url":"https://github.com/apinf","followers_url":"https://api.github.com/users/apinf/followers","following_url":"https://api.github.com/users/apinf/following{/other_user}","gists_url":"https://api.github.com/users/apinf/gists{/gist_id}","starred_url":"https://api.github.com/users/apinf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apinf/subscriptions","organizations_url":"https://api.github.com/users/apinf/orgs","repos_url":"https://api.github.com/users/apinf/repos","events_url":"https://api.github.com/users/apinf/events{/privacy}","received_events_url":"https://api.github.com/users/apinf/received_events","type":"Organization","site_admin":false},"repo":{"id":31646449,"name":"api-umbrella-dashboard","full_name":"apinf/api-umbrella-dashboard","owner":{"login":"apinf","id":9882661,"avatar_url":"https://avatars.githubusercontent.com/u/9882661?v=3","gravatar_id":"","url":"https://api.github.com/users/apinf","html_url":"https://github.com/apinf","followers_url":"https://api.github.com/users/apinf/followers","following_url":"https://api.github.com/users/apinf/following{/other_user}","gists_url":"https://api.github.com/users/apinf/gists{/gist_id}","starred_url":"https://api.github.com/users/apinf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apinf/subscriptions","organizations_url":"https://api.github.com/users/apinf/orgs","repos_url":"https://api.github.com/users/apinf/repos","events_url":"https://api.github.com/users/apinf/events{/privacy}","received_events_url":"https://api.github.com/users/apinf/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apinf/api-umbrella-dashboard","description":"Dashboard component for the open-source API management platform API Umbrella.","fork":false,"url":"https://api.github.com/repos/apinf/api-umbrella-dashboard","forks_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/forks","keys_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/teams","hooks_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/hooks","issue_events_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/events","assignees_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/tags","blobs_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/languages","stargazers_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/stargazers","contributors_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/contributors","subscribers_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/subscribers","subscription_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/subscription","commits_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/merges","archive_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/downloads","issues_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/labels{/name}","releases_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/releases{/id}","created_at":"2015-03-04T08:33:18Z","updated_at":"2015-06-27T05:24:17Z","pushed_at":"2015-08-17T09:31:31Z","git_url":"git://github.com/apinf/api-umbrella-dashboard.git","ssh_url":"git@github.com:apinf/api-umbrella-dashboard.git","clone_url":"https://github.com/apinf/api-umbrella-dashboard.git","svn_url":"https://github.com/apinf/api-umbrella-dashboard","homepage":null,"size":15282,"stargazers_count":1,"watchers_count":1,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":101,"forks":2,"open_issues":101,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/378"},"html":{"href":"https://github.com/apinf/api-umbrella-dashboard/pull/378"},"issue":{"href":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/378"},"comments":{"href":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/378/comments"},"review_comments":{"href":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/378/comments"},"review_comment":{"href":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/378/commits"},"statuses":{"href":"https://api.github.com/repos/apinf/api-umbrella-dashboard/statuses/b136ebd5c5b563cb88923890e517b7087961135f"}}}}