{"action":"created","comment":{"url":"https://api.github.com/repos/d3plus/d3plus-network/pulls/comments/198651471","pull_request_review_id":132620347,"id":198651471,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5ODY1MTQ3MQ==","diff_hunk":"@@ -0,0 +1,33 @@\n+# Simple Sankey Diagram\n+Given an array of [nodes](http://d3plus.org/docs/#Sankey.nodes) and an array of [links](http://d3plus.org/docs/#Sankey.links), [d3plus-network](https://github.com/d3plus/d3plus-network) creates a simple sankey visualization.\n+\n+```js\n+var nodes = [\n+  {id: \"alpha\"},\n+  {id: \"beta\"},\n+  {id: \"gamma\"},\n+  {id: \"epsilon\"},\n+  {id: \"zeta\"},\n+  {id: \"theta\"}\n+];\n+```\n+\n+The `source` and `target` keys in each link need to map to the nodes to be a *String* value matching the `id` of the node.","path":"example/sankey-diagram.md","position":15,"original_position":15,"commit_id":"ef0b00294dc4bdf99a492bd11a916e5b4e3c83a7","original_commit_id":"ef0b00294dc4bdf99a492bd11a916e5b4e3c83a7","user":{"login":"davelandry","id":1847581,"node_id":"MDQ6VXNlcjE4NDc1ODE=","avatar_url":"https://avatars0.githubusercontent.com/u/1847581?v=4","gravatar_id":"","url":"https://api.github.com/users/davelandry","html_url":"https://github.com/davelandry","followers_url":"https://api.github.com/users/davelandry/followers","following_url":"https://api.github.com/users/davelandry/following{/other_user}","gists_url":"https://api.github.com/users/davelandry/gists{/gist_id}","starred_url":"https://api.github.com/users/davelandry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davelandry/subscriptions","organizations_url":"https://api.github.com/users/davelandry/orgs","repos_url":"https://api.github.com/users/davelandry/repos","events_url":"https://api.github.com/users/davelandry/events{/privacy}","received_events_url":"https://api.github.com/users/davelandry/received_events","type":"User","site_admin":false},"body":"```\r\nThe `source` and `target` keys in each link need to *String* values matching the `id` of the associated node.\r\n```\r\n\r\nAlso, add a empty line break between the text and the code block.","created_at":"2018-06-27T21:46:03Z","updated_at":"2018-06-27T21:48:15Z","html_url":"https://github.com/d3plus/d3plus-network/pull/40#discussion_r198651471","pull_request_url":"https://api.github.com/repos/d3plus/d3plus-network/pulls/40","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/d3plus/d3plus-network/pulls/comments/198651471"},"html":{"href":"https://github.com/d3plus/d3plus-network/pull/40#discussion_r198651471"},"pull_request":{"href":"https://api.github.com/repos/d3plus/d3plus-network/pulls/40"}}},"pull_request":{"url":"https://api.github.com/repos/d3plus/d3plus-network/pulls/40","id":195657332,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1NjU3MzMy","html_url":"https://github.com/d3plus/d3plus-network/pull/40","diff_url":"https://github.com/d3plus/d3plus-network/pull/40.diff","patch_url":"https://github.com/d3plus/d3plus-network/pull/40.patch","issue_url":"https://api.github.com/repos/d3plus/d3plus-network/issues/40","number":40,"state":"open","locked":false,"title":"Sankey","user":{"login":"cnavarreteliz","id":5233593,"node_id":"MDQ6VXNlcjUyMzM1OTM=","avatar_url":"https://avatars1.githubusercontent.com/u/5233593?v=4","gravatar_id":"","url":"https://api.github.com/users/cnavarreteliz","html_url":"https://github.com/cnavarreteliz","followers_url":"https://api.github.com/users/cnavarreteliz/followers","following_url":"https://api.github.com/users/cnavarreteliz/following{/other_user}","gists_url":"https://api.github.com/users/cnavarreteliz/gists{/gist_id}","starred_url":"https://api.github.com/users/cnavarreteliz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnavarreteliz/subscriptions","organizations_url":"https://api.github.com/users/cnavarreteliz/orgs","repos_url":"https://api.github.com/users/cnavarreteliz/repos","events_url":"https://api.github.com/users/cnavarreteliz/events{/privacy}","received_events_url":"https://api.github.com/users/cnavarreteliz/received_events","type":"User","site_admin":false},"body":"closes #39 \r\n\r\n### Description\r\nSankey diagrams implemented in d3plus, beta version.\r\n\r\n### Test\r\n```\r\nconst nodes = [\r\n    { node: 0, name: \"node0\", id: 0, parent: \"CL\" },\r\n    { node: 1, name: \"node1\", id: 1, parent: \"CL\" },\r\n    { node: 2, name: \"node2\", id: 2, parent: \"US\" },\r\n    { node: 3, name: \"node3\", id: 3, parent: \"US\" },\r\n    { node: 4, name: \"node4\", id: 4, parent: \"US\" }\r\n];\r\n\r\nconst links = [\r\n    { source: 0, target: 2, value: \"10\" },\r\n    { source: 1, target: 2, value: \"12.4\" },\r\n    { source: 1, target: 3, value: \"2\" },\r\n    { source: 0, target: 4, value: \"5\" },\r\n    { source: 2, target: 3, value: \"15\" },\r\n    { source: 2, target: 3, value: \"10\" },\r\n    { source: 3, target: 4, value: \"5\" }\r\n];\r\n```\r\n\r\n### Types of changes\r\n<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->\r\n- [ ] Bug fix (non-breaking change which fixes an issue)\r\n- [x] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing functionality to change)\r\n\r\n### Checklist\r\n<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [ ] I have documented all new methods.\r\n- [ ] I have written tests for all new methods/functionality.\r\n- [ ] I have written examples for all new methods/functionality.\r\n\r\n","created_at":"2018-06-18T21:44:07Z","updated_at":"2018-06-27T21:48:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"61833bfc69d27497c75cce1975512dff6a8aee30","assignee":{"login":"cnavarreteliz","id":5233593,"node_id":"MDQ6VXNlcjUyMzM1OTM=","avatar_url":"https://avatars1.githubusercontent.com/u/5233593?v=4","gravatar_id":"","url":"https://api.github.com/users/cnavarreteliz","html_url":"https://github.com/cnavarreteliz","followers_url":"https://api.github.com/users/cnavarreteliz/followers","following_url":"https://api.github.com/users/cnavarreteliz/following{/other_user}","gists_url":"https://api.github.com/users/cnavarreteliz/gists{/gist_id}","starred_url":"https://api.github.com/users/cnavarreteliz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnavarreteliz/subscriptions","organizations_url":"https://api.github.com/users/cnavarreteliz/orgs","repos_url":"https://api.github.com/users/cnavarreteliz/repos","events_url":"https://api.github.com/users/cnavarreteliz/events{/privacy}","received_events_url":"https://api.github.com/users/cnavarreteliz/received_events","type":"User","site_admin":false},"assignees":[{"login":"cnavarreteliz","id":5233593,"node_id":"MDQ6VXNlcjUyMzM1OTM=","avatar_url":"https://avatars1.githubusercontent.com/u/5233593?v=4","gravatar_id":"","url":"https://api.github.com/users/cnavarreteliz","html_url":"https://github.com/cnavarreteliz","followers_url":"https://api.github.com/users/cnavarreteliz/followers","following_url":"https://api.github.com/users/cnavarreteliz/following{/other_user}","gists_url":"https://api.github.com/users/cnavarreteliz/gists{/gist_id}","starred_url":"https://api.github.com/users/cnavarreteliz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnavarreteliz/subscriptions","organizations_url":"https://api.github.com/users/cnavarreteliz/orgs","repos_url":"https://api.github.com/users/cnavarreteliz/repos","events_url":"https://api.github.com/users/cnavarreteliz/events{/privacy}","received_events_url":"https://api.github.com/users/cnavarreteliz/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":491067784,"node_id":"MDU6TGFiZWw0OTEwNjc3ODQ=","url":"https://api.github.com/repos/d3plus/d3plus-network/labels/feature","name":"feature","color":"91ca55","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/d3plus/d3plus-network/pulls/40/commits","review_comments_url":"https://api.github.com/repos/d3plus/d3plus-network/pulls/40/comments","review_comment_url":"https://api.github.com/repos/d3plus/d3plus-network/pulls/comments{/number}","comments_url":"https://api.github.com/repos/d3plus/d3plus-network/issues/40/comments","statuses_url":"https://api.github.com/repos/d3plus/d3plus-network/statuses/ef0b00294dc4bdf99a492bd11a916e5b4e3c83a7","head":{"label":"d3plus:sankey","ref":"sankey","sha":"ef0b00294dc4bdf99a492bd11a916e5b4e3c83a7","user":{"login":"d3plus","id":13490477,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDkwNDc3","avatar_url":"https://avatars0.githubusercontent.com/u/13490477?v=4","gravatar_id":"","url":"https://api.github.com/users/d3plus","html_url":"https://github.com/d3plus","followers_url":"https://api.github.com/users/d3plus/followers","following_url":"https://api.github.com/users/d3plus/following{/other_user}","gists_url":"https://api.github.com/users/d3plus/gists{/gist_id}","starred_url":"https://api.github.com/users/d3plus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3plus/subscriptions","organizations_url":"https://api.github.com/users/d3plus/orgs","repos_url":"https://api.github.com/users/d3plus/repos","events_url":"https://api.github.com/users/d3plus/events{/privacy}","received_events_url":"https://api.github.com/users/d3plus/received_events","type":"Organization","site_admin":false},"repo":{"id":74999830,"node_id":"MDEwOlJlcG9zaXRvcnk3NDk5OTgzMA==","name":"d3plus-network","full_name":"d3plus/d3plus-network","owner":{"login":"d3plus","id":13490477,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDkwNDc3","avatar_url":"https://avatars0.githubusercontent.com/u/13490477?v=4","gravatar_id":"","url":"https://api.github.com/users/d3plus","html_url":"https://github.com/d3plus","followers_url":"https://api.github.com/users/d3plus/followers","following_url":"https://api.github.com/users/d3plus/following{/other_user}","gists_url":"https://api.github.com/users/d3plus/gists{/gist_id}","starred_url":"https://api.github.com/users/d3plus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3plus/subscriptions","organizations_url":"https://api.github.com/users/d3plus/orgs","repos_url":"https://api.github.com/users/d3plus/repos","events_url":"https://api.github.com/users/d3plus/events{/privacy}","received_events_url":"https://api.github.com/users/d3plus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/d3plus/d3plus-network","description":"Javascript network visualizations built upon d3 modules.","fork":false,"url":"https://api.github.com/repos/d3plus/d3plus-network","forks_url":"https://api.github.com/repos/d3plus/d3plus-network/forks","keys_url":"https://api.github.com/repos/d3plus/d3plus-network/keys{/key_id}","collaborators_url":"https://api.github.com/repos/d3plus/d3plus-network/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/d3plus/d3plus-network/teams","hooks_url":"https://api.github.com/repos/d3plus/d3plus-network/hooks","issue_events_url":"https://api.github.com/repos/d3plus/d3plus-network/issues/events{/number}","events_url":"https://api.github.com/repos/d3plus/d3plus-network/events","assignees_url":"https://api.github.com/repos/d3plus/d3plus-network/assignees{/user}","branches_url":"https://api.github.com/repos/d3plus/d3plus-network/branches{/branch}","tags_url":"https://api.github.com/repos/d3plus/d3plus-network/tags","blobs_url":"https://api.github.com/repos/d3plus/d3plus-network/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/d3plus/d3plus-network/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/d3plus/d3plus-network/git/refs{/sha}","trees_url":"https://api.github.com/repos/d3plus/d3plus-network/git/trees{/sha}","statuses_url":"https://api.github.com/repos/d3plus/d3plus-network/statuses/{sha}","languages_url":"https://api.github.com/repos/d3plus/d3plus-network/languages","stargazers_url":"https://api.github.com/repos/d3plus/d3plus-network/stargazers","contributors_url":"https://api.github.com/repos/d3plus/d3plus-network/contributors","subscribers_url":"https://api.github.com/repos/d3plus/d3plus-network/subscribers","subscription_url":"https://api.github.com/repos/d3plus/d3plus-network/subscription","commits_url":"https://api.github.com/repos/d3plus/d3plus-network/commits{/sha}","git_commits_url":"https://api.github.com/repos/d3plus/d3plus-network/git/commits{/sha}","comments_url":"https://api.github.com/repos/d3plus/d3plus-network/comments{/number}","issue_comment_url":"https://api.github.com/repos/d3plus/d3plus-network/issues/comments{/number}","contents_url":"https://api.github.com/repos/d3plus/d3plus-network/contents/{+path}","compare_url":"https://api.github.com/repos/d3plus/d3plus-network/compare/{base}...{head}","merges_url":"https://api.github.com/repos/d3plus/d3plus-network/merges","archive_url":"https://api.github.com/repos/d3plus/d3plus-network/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/d3plus/d3plus-network/downloads","issues_url":"https://api.github.com/repos/d3plus/d3plus-network/issues{/number}","pulls_url":"https://api.github.com/repos/d3plus/d3plus-network/pulls{/number}","milestones_url":"https://api.github.com/repos/d3plus/d3plus-network/milestones{/number}","notifications_url":"https://api.github.com/repos/d3plus/d3plus-network/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/d3plus/d3plus-network/labels{/name}","releases_url":"https://api.github.com/repos/d3plus/d3plus-network/releases{/id}","deployments_url":"https://api.github.com/repos/d3plus/d3plus-network/deployments","created_at":"2016-11-28T18:02:16Z","updated_at":"2018-06-25T19:31:03Z","pushed_at":"2018-06-27T17:14:50Z","git_url":"git://github.com/d3plus/d3plus-network.git","ssh_url":"git@github.com:d3plus/d3plus-network.git","clone_url":"https://github.com/d3plus/d3plus-network.git","svn_url":"https://github.com/d3plus/d3plus-network","homepage":"https://d3plus.org","size":1014,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"d3plus:master","ref":"master","sha":"e942e4ead1c578e885aa7f86bd86fde11e2b643e","user":{"login":"d3plus","id":13490477,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDkwNDc3","avatar_url":"https://avatars0.githubusercontent.com/u/13490477?v=4","gravatar_id":"","url":"https://api.github.com/users/d3plus","html_url":"https://github.com/d3plus","followers_url":"https://api.github.com/users/d3plus/followers","following_url":"https://api.github.com/users/d3plus/following{/other_user}","gists_url":"https://api.github.com/users/d3plus/gists{/gist_id}","starred_url":"https://api.github.com/users/d3plus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3plus/subscriptions","organizations_url":"https://api.github.com/users/d3plus/orgs","repos_url":"https://api.github.com/users/d3plus/repos","events_url":"https://api.github.com/users/d3plus/events{/privacy}","received_events_url":"https://api.github.com/users/d3plus/received_events","type":"Organization","site_admin":false},"repo":{"id":74999830,"node_id":"MDEwOlJlcG9zaXRvcnk3NDk5OTgzMA==","name":"d3plus-network","full_name":"d3plus/d3plus-network","owner":{"login":"d3plus","id":13490477,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDkwNDc3","avatar_url":"https://avatars0.githubusercontent.com/u/13490477?v=4","gravatar_id":"","url":"https://api.github.com/users/d3plus","html_url":"https://github.com/d3plus","followers_url":"https://api.github.com/users/d3plus/followers","following_url":"https://api.github.com/users/d3plus/following{/other_user}","gists_url":"https://api.github.com/users/d3plus/gists{/gist_id}","starred_url":"https://api.github.com/users/d3plus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3plus/subscriptions","organizations_url":"https://api.github.com/users/d3plus/orgs","repos_url":"https://api.github.com/users/d3plus/repos","events_url":"https://api.github.com/users/d3plus/events{/privacy}","received_events_url":"https://api.github.com/users/d3plus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/d3plus/d3plus-network","description":"Javascript network visualizations built upon d3 modules.","fork":false,"url":"https://api.github.com/repos/d3plus/d3plus-network","forks_url":"https://api.github.com/repos/d3plus/d3plus-network/forks","keys_url":"https://api.github.com/repos/d3plus/d3plus-network/keys{/key_id}","collaborators_url":"https://api.github.com/repos/d3plus/d3plus-network/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/d3plus/d3plus-network/teams","hooks_url":"https://api.github.com/repos/d3plus/d3plus-network/hooks","issue_events_url":"https://api.github.com/repos/d3plus/d3plus-network/issues/events{/number}","events_url":"https://api.github.com/repos/d3plus/d3plus-network/events","assignees_url":"https://api.github.com/repos/d3plus/d3plus-network/assignees{/user}","branches_url":"https://api.github.com/repos/d3plus/d3plus-network/branches{/branch}","tags_url":"https://api.github.com/repos/d3plus/d3plus-network/tags","blobs_url":"https://api.github.com/repos/d3plus/d3plus-network/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/d3plus/d3plus-network/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/d3plus/d3plus-network/git/refs{/sha}","trees_url":"https://api.github.com/repos/d3plus/d3plus-network/git/trees{/sha}","statuses_url":"https://api.github.com/repos/d3plus/d3plus-network/statuses/{sha}","languages_url":"https://api.github.com/repos/d3plus/d3plus-network/languages","stargazers_url":"https://api.github.com/repos/d3plus/d3plus-network/stargazers","contributors_url":"https://api.github.com/repos/d3plus/d3plus-network/contributors","subscribers_url":"https://api.github.com/repos/d3plus/d3plus-network/subscribers","subscription_url":"https://api.github.com/repos/d3plus/d3plus-network/subscription","commits_url":"https://api.github.com/repos/d3plus/d3plus-network/commits{/sha}","git_commits_url":"https://api.github.com/repos/d3plus/d3plus-network/git/commits{/sha}","comments_url":"https://api.github.com/repos/d3plus/d3plus-network/comments{/number}","issue_comment_url":"https://api.github.com/repos/d3plus/d3plus-network/issues/comments{/number}","contents_url":"https://api.github.com/repos/d3plus/d3plus-network/contents/{+path}","compare_url":"https://api.github.com/repos/d3plus/d3plus-network/compare/{base}...{head}","merges_url":"https://api.github.com/repos/d3plus/d3plus-network/merges","archive_url":"https://api.github.com/repos/d3plus/d3plus-network/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/d3plus/d3plus-network/downloads","issues_url":"https://api.github.com/repos/d3plus/d3plus-network/issues{/number}","pulls_url":"https://api.github.com/repos/d3plus/d3plus-network/pulls{/number}","milestones_url":"https://api.github.com/repos/d3plus/d3plus-network/milestones{/number}","notifications_url":"https://api.github.com/repos/d3plus/d3plus-network/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/d3plus/d3plus-network/labels{/name}","releases_url":"https://api.github.com/repos/d3plus/d3plus-network/releases{/id}","deployments_url":"https://api.github.com/repos/d3plus/d3plus-network/deployments","created_at":"2016-11-28T18:02:16Z","updated_at":"2018-06-25T19:31:03Z","pushed_at":"2018-06-27T17:14:50Z","git_url":"git://github.com/d3plus/d3plus-network.git","ssh_url":"git@github.com:d3plus/d3plus-network.git","clone_url":"https://github.com/d3plus/d3plus-network.git","svn_url":"https://github.com/d3plus/d3plus-network","homepage":"https://d3plus.org","size":1014,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/d3plus/d3plus-network/pulls/40"},"html":{"href":"https://github.com/d3plus/d3plus-network/pull/40"},"issue":{"href":"https://api.github.com/repos/d3plus/d3plus-network/issues/40"},"comments":{"href":"https://api.github.com/repos/d3plus/d3plus-network/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/d3plus/d3plus-network/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/d3plus/d3plus-network/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/d3plus/d3plus-network/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/d3plus/d3plus-network/statuses/ef0b00294dc4bdf99a492bd11a916e5b4e3c83a7"}},"author_association":"NONE"}}
{"actor":{"display_login":"davelandry"}}