{"action":"created","comment":{"url":"https://api.github.com/repos/microscopium/microscopium-ui/pulls/comments/42833129","id":42833129,"diff_hunk":"@@ -59,103 +62,167 @@ function NeighbourPlot(sampleData, element) {\n     this.width = this.fullWidth - this.margin.left - this.margin.right;\n     this.height = this.fullHeight - this.margin.top - this.margin.bottom;\n \n-    this.destroy();\n-    this.drawScatterplot();\n+    this.draw();\n }\n \n /**\n- * drawScatterplot: Draw the scatterplot.\n+ * applyFilterStyling: Update styling of points according to filter status.\n  *\n- * Draw the SVG canvas, axis, scatterplot points and tooltips.\n+ * Update the class of scatterplot points, and bring unfiltered points\n+ * to the top of the SVG stack.\n  *\n  * @this {NeighbourPlot}\n+ * @param {array} newData - The new dataset to display.","path":"public/js/NeighbourPlot.js","position":44,"original_position":44,"commit_id":"e17a2811a7eba0b088e33fd09126878ecf823922","original_commit_id":"e17a2811a7eba0b088e33fd09126878ecf823922","user":{"login":"jni","id":492549,"avatar_url":"https://avatars.githubusercontent.com/u/492549?v=3","gravatar_id":"","url":"https://api.github.com/users/jni","html_url":"https://github.com/jni","followers_url":"https://api.github.com/users/jni/followers","following_url":"https://api.github.com/users/jni/following{/other_user}","gists_url":"https://api.github.com/users/jni/gists{/gist_id}","starred_url":"https://api.github.com/users/jni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jni/subscriptions","organizations_url":"https://api.github.com/users/jni/orgs","repos_url":"https://api.github.com/users/jni/repos","events_url":"https://api.github.com/users/jni/events{/privacy}","received_events_url":"https://api.github.com/users/jni/received_events","type":"User","site_admin":false},"body":"e.g. give a JSON example in the docstring, and what is expected to happen when that example is passed.","created_at":"2015-10-23T04:54:42Z","updated_at":"2015-10-23T04:54:42Z","html_url":"https://github.com/microscopium/microscopium-ui/pull/71#discussion_r42833129","pull_request_url":"https://api.github.com/repos/microscopium/microscopium-ui/pulls/71","_links":{"self":{"href":"https://api.github.com/repos/microscopium/microscopium-ui/pulls/comments/42833129"},"html":{"href":"https://github.com/microscopium/microscopium-ui/pull/71#discussion_r42833129"},"pull_request":{"href":"https://api.github.com/repos/microscopium/microscopium-ui/pulls/71"}}},"pull_request":{"url":"https://api.github.com/repos/microscopium/microscopium-ui/pulls/71","id":48535705,"html_url":"https://github.com/microscopium/microscopium-ui/pull/71","diff_url":"https://github.com/microscopium/microscopium-ui/pull/71.diff","patch_url":"https://github.com/microscopium/microscopium-ui/pull/71.patch","issue_url":"https://api.github.com/repos/microscopium/microscopium-ui/issues/71","number":71,"state":"open","locked":false,"title":"NeighbourPlot refactor","user":{"login":"starcalibre","id":7637964,"avatar_url":"https://avatars.githubusercontent.com/u/7637964?v=3","gravatar_id":"","url":"https://api.github.com/users/starcalibre","html_url":"https://github.com/starcalibre","followers_url":"https://api.github.com/users/starcalibre/followers","following_url":"https://api.github.com/users/starcalibre/following{/other_user}","gists_url":"https://api.github.com/users/starcalibre/gists{/gist_id}","starred_url":"https://api.github.com/users/starcalibre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starcalibre/subscriptions","organizations_url":"https://api.github.com/users/starcalibre/orgs","repos_url":"https://api.github.com/users/starcalibre/repos","events_url":"https://api.github.com/users/starcalibre/events{/privacy}","received_events_url":"https://api.github.com/users/starcalibre/received_events","type":"User","site_admin":false},"body":"Like the last few PRs, this neatens up the code for the ``NeighbourPlot`` object by breaking down larger functions into smaller private methods.","created_at":"2015-10-23T02:23:39Z","updated_at":"2015-10-23T04:54:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c33a4751112b5335b6dfd159b0e7c2aad44a8f6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/microscopium/microscopium-ui/pulls/71/commits","review_comments_url":"https://api.github.com/repos/microscopium/microscopium-ui/pulls/71/comments","review_comment_url":"https://api.github.com/repos/microscopium/microscopium-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/microscopium/microscopium-ui/issues/71/comments","statuses_url":"https://api.github.com/repos/microscopium/microscopium-ui/statuses/e17a2811a7eba0b088e33fd09126878ecf823922","head":{"label":"starcalibre:neighbourplot-refactor","ref":"neighbourplot-refactor","sha":"e17a2811a7eba0b088e33fd09126878ecf823922","user":{"login":"starcalibre","id":7637964,"avatar_url":"https://avatars.githubusercontent.com/u/7637964?v=3","gravatar_id":"","url":"https://api.github.com/users/starcalibre","html_url":"https://github.com/starcalibre","followers_url":"https://api.github.com/users/starcalibre/followers","following_url":"https://api.github.com/users/starcalibre/following{/other_user}","gists_url":"https://api.github.com/users/starcalibre/gists{/gist_id}","starred_url":"https://api.github.com/users/starcalibre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starcalibre/subscriptions","organizations_url":"https://api.github.com/users/starcalibre/orgs","repos_url":"https://api.github.com/users/starcalibre/repos","events_url":"https://api.github.com/users/starcalibre/events{/privacy}","received_events_url":"https://api.github.com/users/starcalibre/received_events","type":"User","site_admin":false},"repo":{"id":29283595,"name":"microscopium-ui","full_name":"starcalibre/microscopium-ui","owner":{"login":"starcalibre","id":7637964,"avatar_url":"https://avatars.githubusercontent.com/u/7637964?v=3","gravatar_id":"","url":"https://api.github.com/users/starcalibre","html_url":"https://github.com/starcalibre","followers_url":"https://api.github.com/users/starcalibre/followers","following_url":"https://api.github.com/users/starcalibre/following{/other_user}","gists_url":"https://api.github.com/users/starcalibre/gists{/gist_id}","starred_url":"https://api.github.com/users/starcalibre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starcalibre/subscriptions","organizations_url":"https://api.github.com/users/starcalibre/orgs","repos_url":"https://api.github.com/users/starcalibre/repos","events_url":"https://api.github.com/users/starcalibre/events{/privacy}","received_events_url":"https://api.github.com/users/starcalibre/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/starcalibre/microscopium-ui","description":"Microscopium web interface.","fork":true,"url":"https://api.github.com/repos/starcalibre/microscopium-ui","forks_url":"https://api.github.com/repos/starcalibre/microscopium-ui/forks","keys_url":"https://api.github.com/repos/starcalibre/microscopium-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/starcalibre/microscopium-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/starcalibre/microscopium-ui/teams","hooks_url":"https://api.github.com/repos/starcalibre/microscopium-ui/hooks","issue_events_url":"https://api.github.com/repos/starcalibre/microscopium-ui/issues/events{/number}","events_url":"https://api.github.com/repos/starcalibre/microscopium-ui/events","assignees_url":"https://api.github.com/repos/starcalibre/microscopium-ui/assignees{/user}","branches_url":"https://api.github.com/repos/starcalibre/microscopium-ui/branches{/branch}","tags_url":"https://api.github.com/repos/starcalibre/microscopium-ui/tags","blobs_url":"https://api.github.com/repos/starcalibre/microscopium-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/starcalibre/microscopium-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/starcalibre/microscopium-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/starcalibre/microscopium-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/starcalibre/microscopium-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/starcalibre/microscopium-ui/languages","stargazers_url":"https://api.github.com/repos/starcalibre/microscopium-ui/stargazers","contributors_url":"https://api.github.com/repos/starcalibre/microscopium-ui/contributors","subscribers_url":"https://api.github.com/repos/starcalibre/microscopium-ui/subscribers","subscription_url":"https://api.github.com/repos/starcalibre/microscopium-ui/subscription","commits_url":"https://api.github.com/repos/starcalibre/microscopium-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/starcalibre/microscopium-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/starcalibre/microscopium-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/starcalibre/microscopium-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/starcalibre/microscopium-ui/contents/{+path}","compare_url":"https://api.github.com/repos/starcalibre/microscopium-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/starcalibre/microscopium-ui/merges","archive_url":"https://api.github.com/repos/starcalibre/microscopium-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/starcalibre/microscopium-ui/downloads","issues_url":"https://api.github.com/repos/starcalibre/microscopium-ui/issues{/number}","pulls_url":"https://api.github.com/repos/starcalibre/microscopium-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/starcalibre/microscopium-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/starcalibre/microscopium-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/starcalibre/microscopium-ui/labels{/name}","releases_url":"https://api.github.com/repos/starcalibre/microscopium-ui/releases{/id}","created_at":"2015-01-15T06:12:36Z","updated_at":"2015-04-28T08:06:12Z","pushed_at":"2015-10-23T02:21:14Z","git_url":"git://github.com/starcalibre/microscopium-ui.git","ssh_url":"git@github.com:starcalibre/microscopium-ui.git","clone_url":"https://github.com/starcalibre/microscopium-ui.git","svn_url":"https://github.com/starcalibre/microscopium-ui","homepage":null,"size":6451,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"microscopium:master","ref":"master","sha":"68dfd99df2408c8199ed92802e597267a50d7c5b","user":{"login":"microscopium","id":10542326,"avatar_url":"https://avatars.githubusercontent.com/u/10542326?v=3","gravatar_id":"","url":"https://api.github.com/users/microscopium","html_url":"https://github.com/microscopium","followers_url":"https://api.github.com/users/microscopium/followers","following_url":"https://api.github.com/users/microscopium/following{/other_user}","gists_url":"https://api.github.com/users/microscopium/gists{/gist_id}","starred_url":"https://api.github.com/users/microscopium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/microscopium/subscriptions","organizations_url":"https://api.github.com/users/microscopium/orgs","repos_url":"https://api.github.com/users/microscopium/repos","events_url":"https://api.github.com/users/microscopium/events{/privacy}","received_events_url":"https://api.github.com/users/microscopium/received_events","type":"Organization","site_admin":false},"repo":{"id":28170352,"name":"microscopium-ui","full_name":"microscopium/microscopium-ui","owner":{"login":"microscopium","id":10542326,"avatar_url":"https://avatars.githubusercontent.com/u/10542326?v=3","gravatar_id":"","url":"https://api.github.com/users/microscopium","html_url":"https://github.com/microscopium","followers_url":"https://api.github.com/users/microscopium/followers","following_url":"https://api.github.com/users/microscopium/following{/other_user}","gists_url":"https://api.github.com/users/microscopium/gists{/gist_id}","starred_url":"https://api.github.com/users/microscopium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/microscopium/subscriptions","organizations_url":"https://api.github.com/users/microscopium/orgs","repos_url":"https://api.github.com/users/microscopium/repos","events_url":"https://api.github.com/users/microscopium/events{/privacy}","received_events_url":"https://api.github.com/users/microscopium/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/microscopium/microscopium-ui","description":"Microscopium web interface.","fork":false,"url":"https://api.github.com/repos/microscopium/microscopium-ui","forks_url":"https://api.github.com/repos/microscopium/microscopium-ui/forks","keys_url":"https://api.github.com/repos/microscopium/microscopium-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/microscopium/microscopium-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/microscopium/microscopium-ui/teams","hooks_url":"https://api.github.com/repos/microscopium/microscopium-ui/hooks","issue_events_url":"https://api.github.com/repos/microscopium/microscopium-ui/issues/events{/number}","events_url":"https://api.github.com/repos/microscopium/microscopium-ui/events","assignees_url":"https://api.github.com/repos/microscopium/microscopium-ui/assignees{/user}","branches_url":"https://api.github.com/repos/microscopium/microscopium-ui/branches{/branch}","tags_url":"https://api.github.com/repos/microscopium/microscopium-ui/tags","blobs_url":"https://api.github.com/repos/microscopium/microscopium-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/microscopium/microscopium-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/microscopium/microscopium-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/microscopium/microscopium-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/microscopium/microscopium-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/microscopium/microscopium-ui/languages","stargazers_url":"https://api.github.com/repos/microscopium/microscopium-ui/stargazers","contributors_url":"https://api.github.com/repos/microscopium/microscopium-ui/contributors","subscribers_url":"https://api.github.com/repos/microscopium/microscopium-ui/subscribers","subscription_url":"https://api.github.com/repos/microscopium/microscopium-ui/subscription","commits_url":"https://api.github.com/repos/microscopium/microscopium-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/microscopium/microscopium-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/microscopium/microscopium-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/microscopium/microscopium-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/microscopium/microscopium-ui/contents/{+path}","compare_url":"https://api.github.com/repos/microscopium/microscopium-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/microscopium/microscopium-ui/merges","archive_url":"https://api.github.com/repos/microscopium/microscopium-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/microscopium/microscopium-ui/downloads","issues_url":"https://api.github.com/repos/microscopium/microscopium-ui/issues{/number}","pulls_url":"https://api.github.com/repos/microscopium/microscopium-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/microscopium/microscopium-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/microscopium/microscopium-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/microscopium/microscopium-ui/labels{/name}","releases_url":"https://api.github.com/repos/microscopium/microscopium-ui/releases{/id}","created_at":"2014-12-18T05:52:59Z","updated_at":"2015-04-28T07:36:08Z","pushed_at":"2015-10-23T02:23:39Z","git_url":"git://github.com/microscopium/microscopium-ui.git","ssh_url":"git@github.com:microscopium/microscopium-ui.git","clone_url":"https://github.com/microscopium/microscopium-ui.git","svn_url":"https://github.com/microscopium/microscopium-ui","homepage":null,"size":6417,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":34,"forks":2,"open_issues":34,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/microscopium/microscopium-ui/pulls/71"},"html":{"href":"https://github.com/microscopium/microscopium-ui/pull/71"},"issue":{"href":"https://api.github.com/repos/microscopium/microscopium-ui/issues/71"},"comments":{"href":"https://api.github.com/repos/microscopium/microscopium-ui/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/microscopium/microscopium-ui/pulls/71/comments"},"review_comment":{"href":"https://api.github.com/repos/microscopium/microscopium-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/microscopium/microscopium-ui/pulls/71/commits"},"statuses":{"href":"https://api.github.com/repos/microscopium/microscopium-ui/statuses/e17a2811a7eba0b088e33fd09126878ecf823922"}}}}