{"action":"closed","number":13,"pull_request":{"url":"https://api.github.com/repos/timelyportfolio/sunburstR/pulls/13","id":69432310,"html_url":"https://github.com/timelyportfolio/sunburstR/pull/13","diff_url":"https://github.com/timelyportfolio/sunburstR/pull/13.diff","patch_url":"https://github.com/timelyportfolio/sunburstR/pull/13.patch","issue_url":"https://api.github.com/repos/timelyportfolio/sunburstR/issues/13","number":13,"state":"closed","locked":false,"title":"Calculate breadcrumb widths based on text when breadcrumb.w=0","user":{"login":"fbreitwieser","id":516060,"avatar_url":"https://avatars.githubusercontent.com/u/516060?v=3","gravatar_id":"","url":"https://api.github.com/users/fbreitwieser","html_url":"https://github.com/fbreitwieser","followers_url":"https://api.github.com/users/fbreitwieser/followers","following_url":"https://api.github.com/users/fbreitwieser/following{/other_user}","gists_url":"https://api.github.com/users/fbreitwieser/gists{/gist_id}","starred_url":"https://api.github.com/users/fbreitwieser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbreitwieser/subscriptions","organizations_url":"https://api.github.com/users/fbreitwieser/orgs","repos_url":"https://api.github.com/users/fbreitwieser/repos","events_url":"https://api.github.com/users/fbreitwieser/events{/privacy}","received_events_url":"https://api.github.com/users/fbreitwieser/received_events","type":"User","site_admin":false},"body":"When the option breadcrumb is given with a 'w' <= 0, then the\r\nlengths of the breadcrumbs are calculated based on the text\r\nlengths. Furthermore, the breadcrumb is continued in the next line\r\nif it is too long for the current.\r\n\r\nDemonstration:\r\n![image](https://cloud.githubusercontent.com/assets/516060/15132105/1dcfa4d8-1624-11e6-81ff-4c89484a654b.png)\r\n\r\nUpdate: Demo code\r\n\r\n```\r\nsequences <- read.csv(\r\n  system.file(\"examples/visit-sequences.csv\",package=\"sunburstR\"), header=F\r\n  ,stringsAsFactors = FALSE\r\n)\r\nsequences <- sequences[sample(nrow(sequences),1000),]\r\nsequences[,1] <- gsub(\"home\",\"my home and my castle\", sequences[,1])\r\n\r\nsunburst(sequences,\r\n             , breadcrumb=list(w=0, h=20,s=3,t=10)\r\n             , legend=list(w=200, h=20, s=3, r=3)\r\n)\r\n\r\n```","created_at":"2016-05-10T00:25:29Z","updated_at":"2016-05-18T20:04:28Z","closed_at":"2016-05-18T20:04:28Z","merged_at":"2016-05-18T20:04:28Z","merge_commit_sha":"d81aaf713a7f92b2f63465c3d22598a268b90950","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/timelyportfolio/sunburstR/pulls/13/commits","review_comments_url":"https://api.github.com/repos/timelyportfolio/sunburstR/pulls/13/comments","review_comment_url":"https://api.github.com/repos/timelyportfolio/sunburstR/pulls/comments{/number}","comments_url":"https://api.github.com/repos/timelyportfolio/sunburstR/issues/13/comments","statuses_url":"https://api.github.com/repos/timelyportfolio/sunburstR/statuses/63ad3fe7aeb5d5604d6fb47a00f5f1459c3787a7","head":{"label":"fbreitwieser:dynamic_breadcrumb_widths","ref":"dynamic_breadcrumb_widths","sha":"63ad3fe7aeb5d5604d6fb47a00f5f1459c3787a7","user":{"login":"fbreitwieser","id":516060,"avatar_url":"https://avatars.githubusercontent.com/u/516060?v=3","gravatar_id":"","url":"https://api.github.com/users/fbreitwieser","html_url":"https://github.com/fbreitwieser","followers_url":"https://api.github.com/users/fbreitwieser/followers","following_url":"https://api.github.com/users/fbreitwieser/following{/other_user}","gists_url":"https://api.github.com/users/fbreitwieser/gists{/gist_id}","starred_url":"https://api.github.com/users/fbreitwieser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbreitwieser/subscriptions","organizations_url":"https://api.github.com/users/fbreitwieser/orgs","repos_url":"https://api.github.com/users/fbreitwieser/repos","events_url":"https://api.github.com/users/fbreitwieser/events{/privacy}","received_events_url":"https://api.github.com/users/fbreitwieser/received_events","type":"User","site_admin":false},"repo":{"id":58416866,"name":"sunburstR-1","full_name":"fbreitwieser/sunburstR-1","owner":{"login":"fbreitwieser","id":516060,"avatar_url":"https://avatars.githubusercontent.com/u/516060?v=3","gravatar_id":"","url":"https://api.github.com/users/fbreitwieser","html_url":"https://github.com/fbreitwieser","followers_url":"https://api.github.com/users/fbreitwieser/followers","following_url":"https://api.github.com/users/fbreitwieser/following{/other_user}","gists_url":"https://api.github.com/users/fbreitwieser/gists{/gist_id}","starred_url":"https://api.github.com/users/fbreitwieser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbreitwieser/subscriptions","organizations_url":"https://api.github.com/users/fbreitwieser/orgs","repos_url":"https://api.github.com/users/fbreitwieser/repos","events_url":"https://api.github.com/users/fbreitwieser/events{/privacy}","received_events_url":"https://api.github.com/users/fbreitwieser/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fbreitwieser/sunburstR-1","description":"R htmlwidget for sequence sunburst","fork":true,"url":"https://api.github.com/repos/fbreitwieser/sunburstR-1","forks_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/forks","keys_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/teams","hooks_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/hooks","issue_events_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/issues/events{/number}","events_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/events","assignees_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/assignees{/user}","branches_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/branches{/branch}","tags_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/tags","blobs_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/statuses/{sha}","languages_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/languages","stargazers_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/stargazers","contributors_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/contributors","subscribers_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/subscribers","subscription_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/subscription","commits_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/contents/{+path}","compare_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/merges","archive_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/downloads","issues_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/issues{/number}","pulls_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/pulls{/number}","milestones_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/milestones{/number}","notifications_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/labels{/name}","releases_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/releases{/id}","deployments_url":"https://api.github.com/repos/fbreitwieser/sunburstR-1/deployments","created_at":"2016-05-10T00:20:56Z","updated_at":"2016-05-10T00:20:57Z","pushed_at":"2016-05-10T00:39:57Z","git_url":"git://github.com/fbreitwieser/sunburstR-1.git","ssh_url":"git@github.com:fbreitwieser/sunburstR-1.git","clone_url":"https://github.com/fbreitwieser/sunburstR-1.git","svn_url":"https://github.com/fbreitwieser/sunburstR-1","homepage":"http://www.buildingwidgets.com/blog/2015/7/2/week-26-sunburstr","size":346,"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":"timelyportfolio:master","ref":"master","sha":"80618e63a03545dabe5a7bbbafdbacb46ab0e9eb","user":{"login":"timelyportfolio","id":837910,"avatar_url":"https://avatars.githubusercontent.com/u/837910?v=3","gravatar_id":"","url":"https://api.github.com/users/timelyportfolio","html_url":"https://github.com/timelyportfolio","followers_url":"https://api.github.com/users/timelyportfolio/followers","following_url":"https://api.github.com/users/timelyportfolio/following{/other_user}","gists_url":"https://api.github.com/users/timelyportfolio/gists{/gist_id}","starred_url":"https://api.github.com/users/timelyportfolio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timelyportfolio/subscriptions","organizations_url":"https://api.github.com/users/timelyportfolio/orgs","repos_url":"https://api.github.com/users/timelyportfolio/repos","events_url":"https://api.github.com/users/timelyportfolio/events{/privacy}","received_events_url":"https://api.github.com/users/timelyportfolio/received_events","type":"User","site_admin":false},"repo":{"id":38397609,"name":"sunburstR","full_name":"timelyportfolio/sunburstR","owner":{"login":"timelyportfolio","id":837910,"avatar_url":"https://avatars.githubusercontent.com/u/837910?v=3","gravatar_id":"","url":"https://api.github.com/users/timelyportfolio","html_url":"https://github.com/timelyportfolio","followers_url":"https://api.github.com/users/timelyportfolio/followers","following_url":"https://api.github.com/users/timelyportfolio/following{/other_user}","gists_url":"https://api.github.com/users/timelyportfolio/gists{/gist_id}","starred_url":"https://api.github.com/users/timelyportfolio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timelyportfolio/subscriptions","organizations_url":"https://api.github.com/users/timelyportfolio/orgs","repos_url":"https://api.github.com/users/timelyportfolio/repos","events_url":"https://api.github.com/users/timelyportfolio/events{/privacy}","received_events_url":"https://api.github.com/users/timelyportfolio/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/timelyportfolio/sunburstR","description":"R htmlwidget for sequence sunburst","fork":false,"url":"https://api.github.com/repos/timelyportfolio/sunburstR","forks_url":"https://api.github.com/repos/timelyportfolio/sunburstR/forks","keys_url":"https://api.github.com/repos/timelyportfolio/sunburstR/keys{/key_id}","collaborators_url":"https://api.github.com/repos/timelyportfolio/sunburstR/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/timelyportfolio/sunburstR/teams","hooks_url":"https://api.github.com/repos/timelyportfolio/sunburstR/hooks","issue_events_url":"https://api.github.com/repos/timelyportfolio/sunburstR/issues/events{/number}","events_url":"https://api.github.com/repos/timelyportfolio/sunburstR/events","assignees_url":"https://api.github.com/repos/timelyportfolio/sunburstR/assignees{/user}","branches_url":"https://api.github.com/repos/timelyportfolio/sunburstR/branches{/branch}","tags_url":"https://api.github.com/repos/timelyportfolio/sunburstR/tags","blobs_url":"https://api.github.com/repos/timelyportfolio/sunburstR/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/timelyportfolio/sunburstR/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/timelyportfolio/sunburstR/git/refs{/sha}","trees_url":"https://api.github.com/repos/timelyportfolio/sunburstR/git/trees{/sha}","statuses_url":"https://api.github.com/repos/timelyportfolio/sunburstR/statuses/{sha}","languages_url":"https://api.github.com/repos/timelyportfolio/sunburstR/languages","stargazers_url":"https://api.github.com/repos/timelyportfolio/sunburstR/stargazers","contributors_url":"https://api.github.com/repos/timelyportfolio/sunburstR/contributors","subscribers_url":"https://api.github.com/repos/timelyportfolio/sunburstR/subscribers","subscription_url":"https://api.github.com/repos/timelyportfolio/sunburstR/subscription","commits_url":"https://api.github.com/repos/timelyportfolio/sunburstR/commits{/sha}","git_commits_url":"https://api.github.com/repos/timelyportfolio/sunburstR/git/commits{/sha}","comments_url":"https://api.github.com/repos/timelyportfolio/sunburstR/comments{/number}","issue_comment_url":"https://api.github.com/repos/timelyportfolio/sunburstR/issues/comments{/number}","contents_url":"https://api.github.com/repos/timelyportfolio/sunburstR/contents/{+path}","compare_url":"https://api.github.com/repos/timelyportfolio/sunburstR/compare/{base}...{head}","merges_url":"https://api.github.com/repos/timelyportfolio/sunburstR/merges","archive_url":"https://api.github.com/repos/timelyportfolio/sunburstR/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/timelyportfolio/sunburstR/downloads","issues_url":"https://api.github.com/repos/timelyportfolio/sunburstR/issues{/number}","pulls_url":"https://api.github.com/repos/timelyportfolio/sunburstR/pulls{/number}","milestones_url":"https://api.github.com/repos/timelyportfolio/sunburstR/milestones{/number}","notifications_url":"https://api.github.com/repos/timelyportfolio/sunburstR/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/timelyportfolio/sunburstR/labels{/name}","releases_url":"https://api.github.com/repos/timelyportfolio/sunburstR/releases{/id}","deployments_url":"https://api.github.com/repos/timelyportfolio/sunburstR/deployments","created_at":"2015-07-01T22:10:19Z","updated_at":"2016-04-22T00:59:27Z","pushed_at":"2016-05-18T20:04:28Z","git_url":"git://github.com/timelyportfolio/sunburstR.git","ssh_url":"git@github.com:timelyportfolio/sunburstR.git","clone_url":"https://github.com/timelyportfolio/sunburstR.git","svn_url":"https://github.com/timelyportfolio/sunburstR","homepage":"http://www.buildingwidgets.com/blog/2015/7/2/week-26-sunburstr","size":343,"stargazers_count":27,"watchers_count":27,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":3,"forks":19,"open_issues":3,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/timelyportfolio/sunburstR/pulls/13"},"html":{"href":"https://github.com/timelyportfolio/sunburstR/pull/13"},"issue":{"href":"https://api.github.com/repos/timelyportfolio/sunburstR/issues/13"},"comments":{"href":"https://api.github.com/repos/timelyportfolio/sunburstR/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/timelyportfolio/sunburstR/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/timelyportfolio/sunburstR/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/timelyportfolio/sunburstR/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/timelyportfolio/sunburstR/statuses/63ad3fe7aeb5d5604d6fb47a00f5f1459c3787a7"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"timelyportfolio","id":837910,"avatar_url":"https://avatars.githubusercontent.com/u/837910?v=3","gravatar_id":"","url":"https://api.github.com/users/timelyportfolio","html_url":"https://github.com/timelyportfolio","followers_url":"https://api.github.com/users/timelyportfolio/followers","following_url":"https://api.github.com/users/timelyportfolio/following{/other_user}","gists_url":"https://api.github.com/users/timelyportfolio/gists{/gist_id}","starred_url":"https://api.github.com/users/timelyportfolio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timelyportfolio/subscriptions","organizations_url":"https://api.github.com/users/timelyportfolio/orgs","repos_url":"https://api.github.com/users/timelyportfolio/repos","events_url":"https://api.github.com/users/timelyportfolio/events{/privacy}","received_events_url":"https://api.github.com/users/timelyportfolio/received_events","type":"User","site_admin":false},"comments":4,"review_comments":0,"commits":2,"additions":99,"deletions":27,"changed_files":3}}