{"action":"created","issue":{"url":"https://api.github.com/repos/Linkurious/linkurious.js/issues/188","labels_url":"https://api.github.com/repos/Linkurious/linkurious.js/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/Linkurious/linkurious.js/issues/188/comments","events_url":"https://api.github.com/repos/Linkurious/linkurious.js/issues/188/events","html_url":"https://github.com/Linkurious/linkurious.js/issues/188","id":95630034,"number":188,"title":"plugins.legend","user":{"login":"sheymann","id":177962,"avatar_url":"https://avatars.githubusercontent.com/u/177962?v=3","gravatar_id":"","url":"https://api.github.com/users/sheymann","html_url":"https://github.com/sheymann","followers_url":"https://api.github.com/users/sheymann/followers","following_url":"https://api.github.com/users/sheymann/following{/other_user}","gists_url":"https://api.github.com/users/sheymann/gists{/gist_id}","starred_url":"https://api.github.com/users/sheymann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheymann/subscriptions","organizations_url":"https://api.github.com/users/sheymann/orgs","repos_url":"https://api.github.com/users/sheymann/repos","events_url":"https://api.github.com/users/sheymann/events{/privacy}","received_events_url":"https://api.github.com/users/sheymann/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Linkurious/linkurious.js/labels/priority:**","name":"priority:**","color":"fef2c0"},{"url":"https://api.github.com/repos/Linkurious/linkurious.js/labels/status:need-specs","name":"status:need-specs","color":"f7c6c7"},{"url":"https://api.github.com/repos/Linkurious/linkurious.js/labels/where:plugin","name":"where:plugin","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Linkurious/linkurious.js/milestones/7","html_url":"https://github.com/Linkurious/linkurious.js/milestones/v1.2.0","labels_url":"https://api.github.com/repos/Linkurious/linkurious.js/milestones/7/labels","id":1320073,"number":7,"title":"v1.2.0","description":"","creator":{"login":"sheymann","id":177962,"avatar_url":"https://avatars.githubusercontent.com/u/177962?v=3","gravatar_id":"","url":"https://api.github.com/users/sheymann","html_url":"https://github.com/sheymann","followers_url":"https://api.github.com/users/sheymann/followers","following_url":"https://api.github.com/users/sheymann/following{/other_user}","gists_url":"https://api.github.com/users/sheymann/gists{/gist_id}","starred_url":"https://api.github.com/users/sheymann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheymann/subscriptions","organizations_url":"https://api.github.com/users/sheymann/orgs","repos_url":"https://api.github.com/users/sheymann/repos","events_url":"https://api.github.com/users/sheymann/events{/privacy}","received_events_url":"https://api.github.com/users/sheymann/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":0,"state":"open","created_at":"2015-09-23T09:43:33Z","updated_at":"2015-10-05T10:30:11Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2015-07-17T10:23:51Z","updated_at":"2015-10-08T10:57:11Z","closed_at":null,"body":"Use sigma.plugins.design to generate a legend overlay displayed over the graph. The overlay can be visible in image exports (png, svg).\r\n\r\nLegend content:\r\n\r\n- node size\r\n- edge thickness\r\n- node icons\r\n- edge shape/direction\r\n- node color\r\n- edge color\r\n- node text\r\n- edge text\r\n\r\nLegend data comes from sigma.plugins.design.\r\n\r\nWhere should we position the legend? Should we provide options like top/bottom/left/right?\r\n\r\nSee inspiration here: http://d3-legend.susielu.com/"},"comment":{"url":"https://api.github.com/repos/Linkurious/linkurious.js/issues/comments/146504114","html_url":"https://github.com/Linkurious/linkurious.js/issues/188#issuecomment-146504114","issue_url":"https://api.github.com/repos/Linkurious/linkurious.js/issues/188","id":146504114,"user":{"login":"sheymann","id":177962,"avatar_url":"https://avatars.githubusercontent.com/u/177962?v=3","gravatar_id":"","url":"https://api.github.com/users/sheymann","html_url":"https://github.com/sheymann","followers_url":"https://api.github.com/users/sheymann/followers","following_url":"https://api.github.com/users/sheymann/following{/other_user}","gists_url":"https://api.github.com/users/sheymann/gists{/gist_id}","starred_url":"https://api.github.com/users/sheymann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheymann/subscriptions","organizations_url":"https://api.github.com/users/sheymann/orgs","repos_url":"https://api.github.com/users/sheymann/repos","events_url":"https://api.github.com/users/sheymann/events{/privacy}","received_events_url":"https://api.github.com/users/sheymann/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T10:57:10Z","updated_at":"2015-10-08T10:57:10Z","body":"The number of rows and columns could be calculated using a [bin packing algorithm](http://stackoverflow.com/questions/1213394/algorithm-needed-for-packing-rectangles-in-a-fairly-optimal-way) if we are looking for optimality.\r\n\r\nHowever maybe a half-way solution would be to assign each legend item a position around the viz (top, bottom, left, right side, or finer e.g. top-left, top-center, top-right, etc.) so we can build an UI easy enough to use."}}