{"action":"created","comment":{"url":"https://api.github.com/repos/sgmap/beta.gouv.fr/pulls/comments/76951672","id":76951672,"diff_hunk":"@@ -0,0 +1,67 @@\n+$(function() {\n+\n+var datasets = makeTimeSeries(window.data, window.buildDate);\n+\n+new Chart(document.querySelector('canvas'), {\n+\ttype: 'line',\n+\tdata: {\n+\t\tdatasets: [{\n+\t\t\tdata: datasets.past,\n+\t\t\tlabel: 'Membres ',\n+\t\t\tlineTension: 0,\n+\t\t\tpointRadius: 0,\n+\t\t\tbackgroundColor: 'rgba(100, 100, 200, .6)'\n+\t\t}, {\n+\t\t\tdata: datasets.future,\n+\t\t\tlabel: 'Présence future garantie au ' + window.buildDate.split('-').reverse().join('/'),\n+\t\t\tpointRadius: 0\n+\t\t}]\n+\t},\n+\toptions: {\n+\t\tanimation: { duration: 0 },\n+\t\tmaintainAspectRatio: false,\n+\t\tscales: {\n+\t\t\txAxes: [{\n+\t\t\t\ttype: 'time',\n+\t\t\t\ttime: { unit: 'quarter' }\n+\t\t\t}]\n+\t\t}\n+\t}\n+});\n+\n+\n+/**\n+*@param\t{Array<Object>}\tdata\t\tAn array containing objects with the following properties: `date`, an ISO-formatted date String on which an event happened, `increment`, by which Number the plotted amount has moved that day.\n+*@param\t{String}\t\tsplitDate\tThe ISO-formatted day on which the past and future datasets are split.\n+*/\n+function makeTimeSeries(data, splitDate) {\n+\tdata = data.slice();  // copy to work in place\n+\n+\tvar splitPoint = {\n+\t\tdate: splitDate,\n+\t\tincrement: 0\n+\t};\n+\n+\tdata.push(splitPoint);\n+\n+\tdata.sort(function(first, second) {\n+\t\treturn first.date < second.date ? -1 : 1;\n+\t});\n+\n+\tvar points = data.map(function(point) {","path":"js/equipe.js","position":51,"original_position":51,"commit_id":"aef46612059b7b24d4e2e7ccded7bec67fbf39a4","original_commit_id":"aef46612059b7b24d4e2e7ccded7bec67fbf39a4","user":{"login":"MattiSG","id":222463,"avatar_url":"https://avatars.githubusercontent.com/u/222463?v=3","gravatar_id":"","url":"https://api.github.com/users/MattiSG","html_url":"https://github.com/MattiSG","followers_url":"https://api.github.com/users/MattiSG/followers","following_url":"https://api.github.com/users/MattiSG/following{/other_user}","gists_url":"https://api.github.com/users/MattiSG/gists{/gist_id}","starred_url":"https://api.github.com/users/MattiSG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattiSG/subscriptions","organizations_url":"https://api.github.com/users/MattiSG/orgs","repos_url":"https://api.github.com/users/MattiSG/repos","events_url":"https://api.github.com/users/MattiSG/events{/privacy}","received_events_url":"https://api.github.com/users/MattiSG/received_events","type":"User","site_admin":false},"body":"J'ai beaucoup hésité avec `reduce`, mais je crains que ça ne soit encore plus déroutant : `reduce` implique généralement une signature vecteur → scalaire, et `map` vecteur → vecteur. `reduce` pour générer un vecteur de même dimension qu'en entrée est assez contre-intuitif.\r\nJ'avais une version lisible beaucoup plus classique avec une variable temporaire pour garder l'état. Je peux remettre ça.","created_at":"2016-08-31T09:15:37Z","updated_at":"2016-08-31T09:15:38Z","html_url":"https://github.com/sgmap/beta.gouv.fr/pull/297#discussion_r76951672","pull_request_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/pulls/297","_links":{"self":{"href":"https://api.github.com/repos/sgmap/beta.gouv.fr/pulls/comments/76951672"},"html":{"href":"https://github.com/sgmap/beta.gouv.fr/pull/297#discussion_r76951672"},"pull_request":{"href":"https://api.github.com/repos/sgmap/beta.gouv.fr/pulls/297"}}},"pull_request":{"url":"https://api.github.com/repos/sgmap/beta.gouv.fr/pulls/297","id":83279788,"html_url":"https://github.com/sgmap/beta.gouv.fr/pull/297","diff_url":"https://github.com/sgmap/beta.gouv.fr/pull/297.diff","patch_url":"https://github.com/sgmap/beta.gouv.fr/pull/297.patch","issue_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/issues/297","number":297,"state":"open","locked":false,"title":"Ajoute un graphe d'évolution des effectifs","user":{"login":"MattiSG","id":222463,"avatar_url":"https://avatars.githubusercontent.com/u/222463?v=3","gravatar_id":"","url":"https://api.github.com/users/MattiSG","html_url":"https://github.com/MattiSG","followers_url":"https://api.github.com/users/MattiSG/followers","following_url":"https://api.github.com/users/MattiSG/following{/other_user}","gists_url":"https://api.github.com/users/MattiSG/gists{/gist_id}","starred_url":"https://api.github.com/users/MattiSG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattiSG/subscriptions","organizations_url":"https://api.github.com/users/MattiSG/orgs","repos_url":"https://api.github.com/users/MattiSG/repos","events_url":"https://api.github.com/users/MattiSG/events{/privacy}","received_events_url":"https://api.github.com/users/MattiSG/received_events","type":"User","site_admin":false},"body":"Fix #286.\r\n\r\nReste à décider où positionner ce graphe : tout en haut, entre membres actuels et alumni, tout en bas… ? @HelaG @odtvince @Flightan \r\n\r\n![capture d ecran 2016-08-30 a 15 49 43](https://cloud.githubusercontent.com/assets/222463/18092561/023654ae-6ecd-11e6-9a26-cd9846ab8e24.png)\r\n","created_at":"2016-08-30T14:16:43Z","updated_at":"2016-08-31T09:15:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"219e1fc83278dfa5077ef8356d4bd527f54e3c3f","assignee":{"login":"Flightan","id":1475946,"avatar_url":"https://avatars.githubusercontent.com/u/1475946?v=3","gravatar_id":"","url":"https://api.github.com/users/Flightan","html_url":"https://github.com/Flightan","followers_url":"https://api.github.com/users/Flightan/followers","following_url":"https://api.github.com/users/Flightan/following{/other_user}","gists_url":"https://api.github.com/users/Flightan/gists{/gist_id}","starred_url":"https://api.github.com/users/Flightan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flightan/subscriptions","organizations_url":"https://api.github.com/users/Flightan/orgs","repos_url":"https://api.github.com/users/Flightan/repos","events_url":"https://api.github.com/users/Flightan/events{/privacy}","received_events_url":"https://api.github.com/users/Flightan/received_events","type":"User","site_admin":false},"assignees":[{"login":"Flightan","id":1475946,"avatar_url":"https://avatars.githubusercontent.com/u/1475946?v=3","gravatar_id":"","url":"https://api.github.com/users/Flightan","html_url":"https://github.com/Flightan","followers_url":"https://api.github.com/users/Flightan/followers","following_url":"https://api.github.com/users/Flightan/following{/other_user}","gists_url":"https://api.github.com/users/Flightan/gists{/gist_id}","starred_url":"https://api.github.com/users/Flightan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flightan/subscriptions","organizations_url":"https://api.github.com/users/Flightan/orgs","repos_url":"https://api.github.com/users/Flightan/repos","events_url":"https://api.github.com/users/Flightan/events{/privacy}","received_events_url":"https://api.github.com/users/Flightan/received_events","type":"User","site_admin":false},{"login":"ThibautGery","id":5861569,"avatar_url":"https://avatars.githubusercontent.com/u/5861569?v=3","gravatar_id":"","url":"https://api.github.com/users/ThibautGery","html_url":"https://github.com/ThibautGery","followers_url":"https://api.github.com/users/ThibautGery/followers","following_url":"https://api.github.com/users/ThibautGery/following{/other_user}","gists_url":"https://api.github.com/users/ThibautGery/gists{/gist_id}","starred_url":"https://api.github.com/users/ThibautGery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThibautGery/subscriptions","organizations_url":"https://api.github.com/users/ThibautGery/orgs","repos_url":"https://api.github.com/users/ThibautGery/repos","events_url":"https://api.github.com/users/ThibautGery/events{/privacy}","received_events_url":"https://api.github.com/users/ThibautGery/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/pulls/297/commits","review_comments_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/pulls/297/comments","review_comment_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/issues/297/comments","statuses_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/statuses/aef46612059b7b24d4e2e7ccded7bec67fbf39a4","head":{"label":"sgmap:graph-286","ref":"graph-286","sha":"aef46612059b7b24d4e2e7ccded7bec67fbf39a4","user":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars.githubusercontent.com/u/7874148?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmap","html_url":"https://github.com/sgmap","followers_url":"https://api.github.com/users/sgmap/followers","following_url":"https://api.github.com/users/sgmap/following{/other_user}","gists_url":"https://api.github.com/users/sgmap/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmap/subscriptions","organizations_url":"https://api.github.com/users/sgmap/orgs","repos_url":"https://api.github.com/users/sgmap/repos","events_url":"https://api.github.com/users/sgmap/events{/privacy}","received_events_url":"https://api.github.com/users/sgmap/received_events","type":"Organization","site_admin":false},"repo":{"id":48237006,"name":"beta.gouv.fr","full_name":"sgmap/beta.gouv.fr","owner":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars.githubusercontent.com/u/7874148?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmap","html_url":"https://github.com/sgmap","followers_url":"https://api.github.com/users/sgmap/followers","following_url":"https://api.github.com/users/sgmap/following{/other_user}","gists_url":"https://api.github.com/users/sgmap/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmap/subscriptions","organizations_url":"https://api.github.com/users/sgmap/orgs","repos_url":"https://api.github.com/users/sgmap/repos","events_url":"https://api.github.com/users/sgmap/events{/privacy}","received_events_url":"https://api.github.com/users/sgmap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sgmap/beta.gouv.fr","description":"Le site public de l'Incubateur de Services Numériques de l'État français.","fork":false,"url":"https://api.github.com/repos/sgmap/beta.gouv.fr","forks_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/forks","keys_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/teams","hooks_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/hooks","issue_events_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/issues/events{/number}","events_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/events","assignees_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/assignees{/user}","branches_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/branches{/branch}","tags_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/tags","blobs_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/git/refs{/sha}","trees_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/statuses/{sha}","languages_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/languages","stargazers_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/stargazers","contributors_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/contributors","subscribers_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/subscribers","subscription_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/subscription","commits_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/commits{/sha}","git_commits_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/git/commits{/sha}","comments_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/comments{/number}","issue_comment_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/issues/comments{/number}","contents_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/contents/{+path}","compare_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/merges","archive_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/downloads","issues_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/issues{/number}","pulls_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/pulls{/number}","milestones_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/milestones{/number}","notifications_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/labels{/name}","releases_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/releases{/id}","deployments_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/deployments","created_at":"2015-12-18T13:33:48Z","updated_at":"2016-06-15T08:29:56Z","pushed_at":"2016-08-31T07:58:09Z","git_url":"git://github.com/sgmap/beta.gouv.fr.git","ssh_url":"git@github.com:sgmap/beta.gouv.fr.git","clone_url":"https://github.com/sgmap/beta.gouv.fr.git","svn_url":"https://github.com/sgmap/beta.gouv.fr","homepage":"https://beta.gouv.fr","size":21318,"stargazers_count":12,"watchers_count":12,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":28,"mirror_url":null,"open_issues_count":18,"forks":28,"open_issues":18,"watchers":12,"default_branch":"gh-pages"}},"base":{"label":"sgmap:gh-pages","ref":"gh-pages","sha":"7db9984cbf904b96457d172b40e96e209dd1ab6b","user":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars.githubusercontent.com/u/7874148?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmap","html_url":"https://github.com/sgmap","followers_url":"https://api.github.com/users/sgmap/followers","following_url":"https://api.github.com/users/sgmap/following{/other_user}","gists_url":"https://api.github.com/users/sgmap/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmap/subscriptions","organizations_url":"https://api.github.com/users/sgmap/orgs","repos_url":"https://api.github.com/users/sgmap/repos","events_url":"https://api.github.com/users/sgmap/events{/privacy}","received_events_url":"https://api.github.com/users/sgmap/received_events","type":"Organization","site_admin":false},"repo":{"id":48237006,"name":"beta.gouv.fr","full_name":"sgmap/beta.gouv.fr","owner":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars.githubusercontent.com/u/7874148?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmap","html_url":"https://github.com/sgmap","followers_url":"https://api.github.com/users/sgmap/followers","following_url":"https://api.github.com/users/sgmap/following{/other_user}","gists_url":"https://api.github.com/users/sgmap/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmap/subscriptions","organizations_url":"https://api.github.com/users/sgmap/orgs","repos_url":"https://api.github.com/users/sgmap/repos","events_url":"https://api.github.com/users/sgmap/events{/privacy}","received_events_url":"https://api.github.com/users/sgmap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sgmap/beta.gouv.fr","description":"Le site public de l'Incubateur de Services Numériques de l'État français.","fork":false,"url":"https://api.github.com/repos/sgmap/beta.gouv.fr","forks_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/forks","keys_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/teams","hooks_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/hooks","issue_events_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/issues/events{/number}","events_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/events","assignees_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/assignees{/user}","branches_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/branches{/branch}","tags_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/tags","blobs_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/git/refs{/sha}","trees_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/statuses/{sha}","languages_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/languages","stargazers_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/stargazers","contributors_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/contributors","subscribers_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/subscribers","subscription_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/subscription","commits_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/commits{/sha}","git_commits_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/git/commits{/sha}","comments_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/comments{/number}","issue_comment_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/issues/comments{/number}","contents_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/contents/{+path}","compare_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/merges","archive_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/downloads","issues_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/issues{/number}","pulls_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/pulls{/number}","milestones_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/milestones{/number}","notifications_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/labels{/name}","releases_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/releases{/id}","deployments_url":"https://api.github.com/repos/sgmap/beta.gouv.fr/deployments","created_at":"2015-12-18T13:33:48Z","updated_at":"2016-06-15T08:29:56Z","pushed_at":"2016-08-31T07:58:09Z","git_url":"git://github.com/sgmap/beta.gouv.fr.git","ssh_url":"git@github.com:sgmap/beta.gouv.fr.git","clone_url":"https://github.com/sgmap/beta.gouv.fr.git","svn_url":"https://github.com/sgmap/beta.gouv.fr","homepage":"https://beta.gouv.fr","size":21318,"stargazers_count":12,"watchers_count":12,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":28,"mirror_url":null,"open_issues_count":18,"forks":28,"open_issues":18,"watchers":12,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/sgmap/beta.gouv.fr/pulls/297"},"html":{"href":"https://github.com/sgmap/beta.gouv.fr/pull/297"},"issue":{"href":"https://api.github.com/repos/sgmap/beta.gouv.fr/issues/297"},"comments":{"href":"https://api.github.com/repos/sgmap/beta.gouv.fr/issues/297/comments"},"review_comments":{"href":"https://api.github.com/repos/sgmap/beta.gouv.fr/pulls/297/comments"},"review_comment":{"href":"https://api.github.com/repos/sgmap/beta.gouv.fr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sgmap/beta.gouv.fr/pulls/297/commits"},"statuses":{"href":"https://api.github.com/repos/sgmap/beta.gouv.fr/statuses/aef46612059b7b24d4e2e7ccded7bec67fbf39a4"}}}}
{"actor":{"display_login":"MattiSG"}}