{"action":"created","comment":{"url":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/comments/92286148","pull_request_review_id":12799152,"id":92286148,"diff_hunk":"@@ -42,30 +42,39 @@ class PopulationCapacityChart {\n   }\n \n   render(targetElement) {\n+    const targetWidth = parseInt(targetElement.style(\"width\"));\n+\n+    const renderedHeight = 200\n+    const renderedWidth = targetWidth\n+\n     const markerValues = objectValues(this.args.markers);\n \n-    const margin = { top: 20, right: 20, bottom: 60, left: 40 };\n-    const width = 800 - margin.left - margin.right;\n-    const height = 200 - margin.top - margin.bottom;\n+    const margin = { top: 20, right: 20, bottom: 60, left: 20 };\n+\n+    const width = renderedWidth - margin.left - margin.right;\n+    const height = renderedHeight - margin.top - margin.bottom;\n+\n+    const svg = targetElement.append('svg')\n+      .attr(\"preserveAspectRatio\", \"none\")","path":"app/assets/javascripts/charts/population_capacity.js.es6","position":20,"original_position":20,"commit_id":"18eb05af77dbd42d2aff2d003bc2d30662e22605","original_commit_id":"18eb05af77dbd42d2aff2d003bc2d30662e22605","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Strings must use singlequote                         quotes","created_at":"2016-12-13T22:55:35Z","updated_at":"2016-12-13T22:55:35Z","html_url":"https://github.com/codeforamerica/jail-dashboard/pull/68#discussion_r92286148","pull_request_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/68","_links":{"self":{"href":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/comments/92286148"},"html":{"href":"https://github.com/codeforamerica/jail-dashboard/pull/68#discussion_r92286148"},"pull_request":{"href":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/68"}}},"pull_request":{"url":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/68","id":97853268,"html_url":"https://github.com/codeforamerica/jail-dashboard/pull/68","diff_url":"https://github.com/codeforamerica/jail-dashboard/pull/68.diff","patch_url":"https://github.com/codeforamerica/jail-dashboard/pull/68.patch","issue_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/issues/68","number":68,"state":"open","locked":false,"title":"Scale the chart to match the size of the window","user":{"login":"graysonwright","id":829576,"avatar_url":"https://avatars.githubusercontent.com/u/829576?v=3","gravatar_id":"","url":"https://api.github.com/users/graysonwright","html_url":"https://github.com/graysonwright","followers_url":"https://api.github.com/users/graysonwright/followers","following_url":"https://api.github.com/users/graysonwright/following{/other_user}","gists_url":"https://api.github.com/users/graysonwright/gists{/gist_id}","starred_url":"https://api.github.com/users/graysonwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graysonwright/subscriptions","organizations_url":"https://api.github.com/users/graysonwright/orgs","repos_url":"https://api.github.com/users/graysonwright/repos","events_url":"https://api.github.com/users/graysonwright/events{/privacy}","received_events_url":"https://api.github.com/users/graysonwright/received_events","type":"User","site_admin":false},"body":"Closes #66.\n\nSee https://sarasoueidan.com/blog/svg-coordinate-systems/","created_at":"2016-12-13T22:55:20Z","updated_at":"2016-12-13T22:55:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"38e837f6732e595cbe6b380cac61a8ba0629543b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/68/commits","review_comments_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/68/comments","review_comment_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/issues/68/comments","statuses_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/statuses/18eb05af77dbd42d2aff2d003bc2d30662e22605","head":{"label":"codeforamerica:responsive","ref":"responsive","sha":"18eb05af77dbd42d2aff2d003bc2d30662e22605","user":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"repo":{"id":72130706,"name":"jail-dashboard","full_name":"codeforamerica/jail-dashboard","owner":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeforamerica/jail-dashboard","description":"A tool to help jail administrators, judges, and other stakeholders understand the conditions in metro jails, and use this data to visualize how their decisions–at both the individual and policy level–affect program, facility, and inmate outcomes.","fork":false,"url":"https://api.github.com/repos/codeforamerica/jail-dashboard","forks_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/forks","keys_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/teams","hooks_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/hooks","issue_events_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/events","assignees_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/tags","blobs_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/languages","stargazers_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/stargazers","contributors_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/contributors","subscribers_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/subscribers","subscription_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/subscription","commits_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/merges","archive_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/downloads","issues_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/labels{/name}","releases_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/releases{/id}","deployments_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/deployments","created_at":"2016-10-27T17:14:21Z","updated_at":"2016-12-06T08:27:07Z","pushed_at":"2016-12-13T22:55:20Z","git_url":"git://github.com/codeforamerica/jail-dashboard.git","ssh_url":"git@github.com:codeforamerica/jail-dashboard.git","clone_url":"https://github.com/codeforamerica/jail-dashboard.git","svn_url":"https://github.com/codeforamerica/jail-dashboard","homepage":null,"size":23233,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":17,"forks":0,"open_issues":17,"watchers":1,"default_branch":"master"}},"base":{"label":"codeforamerica:master","ref":"master","sha":"126c95052b8ece99d2b52f4cb6edd4a6cd4aa7e9","user":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"repo":{"id":72130706,"name":"jail-dashboard","full_name":"codeforamerica/jail-dashboard","owner":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeforamerica/jail-dashboard","description":"A tool to help jail administrators, judges, and other stakeholders understand the conditions in metro jails, and use this data to visualize how their decisions–at both the individual and policy level–affect program, facility, and inmate outcomes.","fork":false,"url":"https://api.github.com/repos/codeforamerica/jail-dashboard","forks_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/forks","keys_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/teams","hooks_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/hooks","issue_events_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/events","assignees_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/tags","blobs_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/languages","stargazers_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/stargazers","contributors_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/contributors","subscribers_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/subscribers","subscription_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/subscription","commits_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/merges","archive_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/downloads","issues_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/labels{/name}","releases_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/releases{/id}","deployments_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/deployments","created_at":"2016-10-27T17:14:21Z","updated_at":"2016-12-06T08:27:07Z","pushed_at":"2016-12-13T22:55:20Z","git_url":"git://github.com/codeforamerica/jail-dashboard.git","ssh_url":"git@github.com:codeforamerica/jail-dashboard.git","clone_url":"https://github.com/codeforamerica/jail-dashboard.git","svn_url":"https://github.com/codeforamerica/jail-dashboard","homepage":null,"size":23233,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":17,"forks":0,"open_issues":17,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/68"},"html":{"href":"https://github.com/codeforamerica/jail-dashboard/pull/68"},"issue":{"href":"https://api.github.com/repos/codeforamerica/jail-dashboard/issues/68"},"comments":{"href":"https://api.github.com/repos/codeforamerica/jail-dashboard/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/codeforamerica/jail-dashboard/statuses/18eb05af77dbd42d2aff2d003bc2d30662e22605"}}}}
{"actor":{"display_login":"houndci-bot"}}