{"action":"created","comment":{"url":"https://api.github.com/repos/personality-insights/sunburst-chart/pulls/comments/86698595","pull_request_review_id":7343359,"id":86698595,"diff_hunk":"@@ -570,6 +570,14 @@ var renderChart = function() {\n \n   var profile = tree;\n \n+  // exclude specified sectors\n+  var exclude = this.exclude;\n+  profile.children = profile.children.filter(function (child) {\n+    return -1 === exclude.findIndex(function (id) {","path":"src/personality-chart-renderer.js","position":7,"original_position":7,"commit_id":"bb5169f6ba91483e582da8016364da2bb0b182a2","original_commit_id":"bb5169f6ba91483e582da8016364da2bb0b182a2","user":{"login":"germanattanasio","id":313157,"avatar_url":"https://avatars.githubusercontent.com/u/313157?v=3","gravatar_id":"","url":"https://api.github.com/users/germanattanasio","html_url":"https://github.com/germanattanasio","followers_url":"https://api.github.com/users/germanattanasio/followers","following_url":"https://api.github.com/users/germanattanasio/following{/other_user}","gists_url":"https://api.github.com/users/germanattanasio/gists{/gist_id}","starred_url":"https://api.github.com/users/germanattanasio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/germanattanasio/subscriptions","organizations_url":"https://api.github.com/users/germanattanasio/orgs","repos_url":"https://api.github.com/users/germanattanasio/repos","events_url":"https://api.github.com/users/germanattanasio/events{/privacy}","received_events_url":"https://api.github.com/users/germanattanasio/received_events","type":"User","site_admin":false},"body":"Can you use `indexOf` ? `findIndex` is not supported in IE.\r\n\r\n```\r\nreturn exclude.indexOf(child.id) === -1\r\n```","created_at":"2016-11-06T22:45:32Z","updated_at":"2016-11-06T22:45:39Z","html_url":"https://github.com/personality-insights/sunburst-chart/pull/7#discussion_r86698595","pull_request_url":"https://api.github.com/repos/personality-insights/sunburst-chart/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/personality-insights/sunburst-chart/pulls/comments/86698595"},"html":{"href":"https://github.com/personality-insights/sunburst-chart/pull/7#discussion_r86698595"},"pull_request":{"href":"https://api.github.com/repos/personality-insights/sunburst-chart/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/personality-insights/sunburst-chart/pulls/7","id":92493842,"html_url":"https://github.com/personality-insights/sunburst-chart/pull/7","diff_url":"https://github.com/personality-insights/sunburst-chart/pull/7.diff","patch_url":"https://github.com/personality-insights/sunburst-chart/pull/7.patch","issue_url":"https://api.github.com/repos/personality-insights/sunburst-chart/issues/7","number":7,"state":"open","locked":false,"title":"allow excluding sectors from rendering","user":{"login":"soumak77","id":10901035,"avatar_url":"https://avatars.githubusercontent.com/u/10901035?v=3","gravatar_id":"","url":"https://api.github.com/users/soumak77","html_url":"https://github.com/soumak77","followers_url":"https://api.github.com/users/soumak77/followers","following_url":"https://api.github.com/users/soumak77/following{/other_user}","gists_url":"https://api.github.com/users/soumak77/gists{/gist_id}","starred_url":"https://api.github.com/users/soumak77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soumak77/subscriptions","organizations_url":"https://api.github.com/users/soumak77/orgs","repos_url":"https://api.github.com/users/soumak77/repos","events_url":"https://api.github.com/users/soumak77/events{/privacy}","received_events_url":"https://api.github.com/users/soumak77/received_events","type":"User","site_admin":false},"body":"resolves https://github.com/personality-insights/sunburst-chart/issues/2","created_at":"2016-11-06T16:46:35Z","updated_at":"2016-11-06T22:45:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e845e473a9f28e9bcedd1308daa2b92d7af6218c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/personality-insights/sunburst-chart/pulls/7/commits","review_comments_url":"https://api.github.com/repos/personality-insights/sunburst-chart/pulls/7/comments","review_comment_url":"https://api.github.com/repos/personality-insights/sunburst-chart/pulls/comments{/number}","comments_url":"https://api.github.com/repos/personality-insights/sunburst-chart/issues/7/comments","statuses_url":"https://api.github.com/repos/personality-insights/sunburst-chart/statuses/bb5169f6ba91483e582da8016364da2bb0b182a2","head":{"label":"soumak77:master","ref":"master","sha":"bb5169f6ba91483e582da8016364da2bb0b182a2","user":{"login":"soumak77","id":10901035,"avatar_url":"https://avatars.githubusercontent.com/u/10901035?v=3","gravatar_id":"","url":"https://api.github.com/users/soumak77","html_url":"https://github.com/soumak77","followers_url":"https://api.github.com/users/soumak77/followers","following_url":"https://api.github.com/users/soumak77/following{/other_user}","gists_url":"https://api.github.com/users/soumak77/gists{/gist_id}","starred_url":"https://api.github.com/users/soumak77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soumak77/subscriptions","organizations_url":"https://api.github.com/users/soumak77/orgs","repos_url":"https://api.github.com/users/soumak77/repos","events_url":"https://api.github.com/users/soumak77/events{/privacy}","received_events_url":"https://api.github.com/users/soumak77/received_events","type":"User","site_admin":false},"repo":{"id":72883139,"name":"sunburst-chart","full_name":"soumak77/sunburst-chart","owner":{"login":"soumak77","id":10901035,"avatar_url":"https://avatars.githubusercontent.com/u/10901035?v=3","gravatar_id":"","url":"https://api.github.com/users/soumak77","html_url":"https://github.com/soumak77","followers_url":"https://api.github.com/users/soumak77/followers","following_url":"https://api.github.com/users/soumak77/following{/other_user}","gists_url":"https://api.github.com/users/soumak77/gists{/gist_id}","starred_url":"https://api.github.com/users/soumak77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soumak77/subscriptions","organizations_url":"https://api.github.com/users/soumak77/orgs","repos_url":"https://api.github.com/users/soumak77/repos","events_url":"https://api.github.com/users/soumak77/events{/privacy}","received_events_url":"https://api.github.com/users/soumak77/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/soumak77/sunburst-chart","description":"A visualization for IBM Watson Personality Insights service output.","fork":true,"url":"https://api.github.com/repos/soumak77/sunburst-chart","forks_url":"https://api.github.com/repos/soumak77/sunburst-chart/forks","keys_url":"https://api.github.com/repos/soumak77/sunburst-chart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/soumak77/sunburst-chart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/soumak77/sunburst-chart/teams","hooks_url":"https://api.github.com/repos/soumak77/sunburst-chart/hooks","issue_events_url":"https://api.github.com/repos/soumak77/sunburst-chart/issues/events{/number}","events_url":"https://api.github.com/repos/soumak77/sunburst-chart/events","assignees_url":"https://api.github.com/repos/soumak77/sunburst-chart/assignees{/user}","branches_url":"https://api.github.com/repos/soumak77/sunburst-chart/branches{/branch}","tags_url":"https://api.github.com/repos/soumak77/sunburst-chart/tags","blobs_url":"https://api.github.com/repos/soumak77/sunburst-chart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/soumak77/sunburst-chart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/soumak77/sunburst-chart/git/refs{/sha}","trees_url":"https://api.github.com/repos/soumak77/sunburst-chart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/soumak77/sunburst-chart/statuses/{sha}","languages_url":"https://api.github.com/repos/soumak77/sunburst-chart/languages","stargazers_url":"https://api.github.com/repos/soumak77/sunburst-chart/stargazers","contributors_url":"https://api.github.com/repos/soumak77/sunburst-chart/contributors","subscribers_url":"https://api.github.com/repos/soumak77/sunburst-chart/subscribers","subscription_url":"https://api.github.com/repos/soumak77/sunburst-chart/subscription","commits_url":"https://api.github.com/repos/soumak77/sunburst-chart/commits{/sha}","git_commits_url":"https://api.github.com/repos/soumak77/sunburst-chart/git/commits{/sha}","comments_url":"https://api.github.com/repos/soumak77/sunburst-chart/comments{/number}","issue_comment_url":"https://api.github.com/repos/soumak77/sunburst-chart/issues/comments{/number}","contents_url":"https://api.github.com/repos/soumak77/sunburst-chart/contents/{+path}","compare_url":"https://api.github.com/repos/soumak77/sunburst-chart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/soumak77/sunburst-chart/merges","archive_url":"https://api.github.com/repos/soumak77/sunburst-chart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/soumak77/sunburst-chart/downloads","issues_url":"https://api.github.com/repos/soumak77/sunburst-chart/issues{/number}","pulls_url":"https://api.github.com/repos/soumak77/sunburst-chart/pulls{/number}","milestones_url":"https://api.github.com/repos/soumak77/sunburst-chart/milestones{/number}","notifications_url":"https://api.github.com/repos/soumak77/sunburst-chart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/soumak77/sunburst-chart/labels{/name}","releases_url":"https://api.github.com/repos/soumak77/sunburst-chart/releases{/id}","deployments_url":"https://api.github.com/repos/soumak77/sunburst-chart/deployments","created_at":"2016-11-04T20:30:40Z","updated_at":"2016-11-04T20:30:41Z","pushed_at":"2016-11-06T16:46:35Z","git_url":"git://github.com/soumak77/sunburst-chart.git","ssh_url":"git@github.com:soumak77/sunburst-chart.git","clone_url":"https://github.com/soumak77/sunburst-chart.git","svn_url":"https://github.com/soumak77/sunburst-chart","homepage":null,"size":1118,"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":"personality-insights:master","ref":"master","sha":"1876756a271cc2d8f9c89c4cd79d1f50003e1b12","user":{"login":"personality-insights","id":18266863,"avatar_url":"https://avatars.githubusercontent.com/u/18266863?v=3","gravatar_id":"","url":"https://api.github.com/users/personality-insights","html_url":"https://github.com/personality-insights","followers_url":"https://api.github.com/users/personality-insights/followers","following_url":"https://api.github.com/users/personality-insights/following{/other_user}","gists_url":"https://api.github.com/users/personality-insights/gists{/gist_id}","starred_url":"https://api.github.com/users/personality-insights/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/personality-insights/subscriptions","organizations_url":"https://api.github.com/users/personality-insights/orgs","repos_url":"https://api.github.com/users/personality-insights/repos","events_url":"https://api.github.com/users/personality-insights/events{/privacy}","received_events_url":"https://api.github.com/users/personality-insights/received_events","type":"Organization","site_admin":false},"repo":{"id":50586389,"name":"sunburst-chart","full_name":"personality-insights/sunburst-chart","owner":{"login":"personality-insights","id":18266863,"avatar_url":"https://avatars.githubusercontent.com/u/18266863?v=3","gravatar_id":"","url":"https://api.github.com/users/personality-insights","html_url":"https://github.com/personality-insights","followers_url":"https://api.github.com/users/personality-insights/followers","following_url":"https://api.github.com/users/personality-insights/following{/other_user}","gists_url":"https://api.github.com/users/personality-insights/gists{/gist_id}","starred_url":"https://api.github.com/users/personality-insights/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/personality-insights/subscriptions","organizations_url":"https://api.github.com/users/personality-insights/orgs","repos_url":"https://api.github.com/users/personality-insights/repos","events_url":"https://api.github.com/users/personality-insights/events{/privacy}","received_events_url":"https://api.github.com/users/personality-insights/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/personality-insights/sunburst-chart","description":"A visualization for IBM Watson Personality Insights service output.","fork":false,"url":"https://api.github.com/repos/personality-insights/sunburst-chart","forks_url":"https://api.github.com/repos/personality-insights/sunburst-chart/forks","keys_url":"https://api.github.com/repos/personality-insights/sunburst-chart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/personality-insights/sunburst-chart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/personality-insights/sunburst-chart/teams","hooks_url":"https://api.github.com/repos/personality-insights/sunburst-chart/hooks","issue_events_url":"https://api.github.com/repos/personality-insights/sunburst-chart/issues/events{/number}","events_url":"https://api.github.com/repos/personality-insights/sunburst-chart/events","assignees_url":"https://api.github.com/repos/personality-insights/sunburst-chart/assignees{/user}","branches_url":"https://api.github.com/repos/personality-insights/sunburst-chart/branches{/branch}","tags_url":"https://api.github.com/repos/personality-insights/sunburst-chart/tags","blobs_url":"https://api.github.com/repos/personality-insights/sunburst-chart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/personality-insights/sunburst-chart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/personality-insights/sunburst-chart/git/refs{/sha}","trees_url":"https://api.github.com/repos/personality-insights/sunburst-chart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/personality-insights/sunburst-chart/statuses/{sha}","languages_url":"https://api.github.com/repos/personality-insights/sunburst-chart/languages","stargazers_url":"https://api.github.com/repos/personality-insights/sunburst-chart/stargazers","contributors_url":"https://api.github.com/repos/personality-insights/sunburst-chart/contributors","subscribers_url":"https://api.github.com/repos/personality-insights/sunburst-chart/subscribers","subscription_url":"https://api.github.com/repos/personality-insights/sunburst-chart/subscription","commits_url":"https://api.github.com/repos/personality-insights/sunburst-chart/commits{/sha}","git_commits_url":"https://api.github.com/repos/personality-insights/sunburst-chart/git/commits{/sha}","comments_url":"https://api.github.com/repos/personality-insights/sunburst-chart/comments{/number}","issue_comment_url":"https://api.github.com/repos/personality-insights/sunburst-chart/issues/comments{/number}","contents_url":"https://api.github.com/repos/personality-insights/sunburst-chart/contents/{+path}","compare_url":"https://api.github.com/repos/personality-insights/sunburst-chart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/personality-insights/sunburst-chart/merges","archive_url":"https://api.github.com/repos/personality-insights/sunburst-chart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/personality-insights/sunburst-chart/downloads","issues_url":"https://api.github.com/repos/personality-insights/sunburst-chart/issues{/number}","pulls_url":"https://api.github.com/repos/personality-insights/sunburst-chart/pulls{/number}","milestones_url":"https://api.github.com/repos/personality-insights/sunburst-chart/milestones{/number}","notifications_url":"https://api.github.com/repos/personality-insights/sunburst-chart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/personality-insights/sunburst-chart/labels{/name}","releases_url":"https://api.github.com/repos/personality-insights/sunburst-chart/releases{/id}","deployments_url":"https://api.github.com/repos/personality-insights/sunburst-chart/deployments","created_at":"2016-01-28T13:56:42Z","updated_at":"2016-11-05T17:52:03Z","pushed_at":"2016-11-06T16:46:35Z","git_url":"git://github.com/personality-insights/sunburst-chart.git","ssh_url":"git@github.com:personality-insights/sunburst-chart.git","clone_url":"https://github.com/personality-insights/sunburst-chart.git","svn_url":"https://github.com/personality-insights/sunburst-chart","homepage":null,"size":1118,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":4,"forks":10,"open_issues":4,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/personality-insights/sunburst-chart/pulls/7"},"html":{"href":"https://github.com/personality-insights/sunburst-chart/pull/7"},"issue":{"href":"https://api.github.com/repos/personality-insights/sunburst-chart/issues/7"},"comments":{"href":"https://api.github.com/repos/personality-insights/sunburst-chart/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/personality-insights/sunburst-chart/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/personality-insights/sunburst-chart/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/personality-insights/sunburst-chart/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/personality-insights/sunburst-chart/statuses/bb5169f6ba91483e582da8016364da2bb0b182a2"}}}}
{"actor":{"display_login":"germanattanasio"}}