{"action":"closed","issue":{"url":"https://api.github.com/repos/iLanguage/d3-cloud/issues/31","labels_url":"https://api.github.com/repos/iLanguage/d3-cloud/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/iLanguage/d3-cloud/issues/31/comments","events_url":"https://api.github.com/repos/iLanguage/d3-cloud/issues/31/events","html_url":"https://github.com/iLanguage/d3-cloud/issues/31","id":90164820,"number":31,"title":"Add startPoint option to control where initial words get placed","user":{"login":"cesine","id":196199,"avatar_url":"https://avatars.githubusercontent.com/u/196199?v=3","gravatar_id":"","url":"https://api.github.com/users/cesine","html_url":"https://github.com/cesine","followers_url":"https://api.github.com/users/cesine/followers","following_url":"https://api.github.com/users/cesine/following{/other_user}","gists_url":"https://api.github.com/users/cesine/gists{/gist_id}","starred_url":"https://api.github.com/users/cesine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesine/subscriptions","organizations_url":"https://api.github.com/users/cesine/orgs","repos_url":"https://api.github.com/users/cesine/repos","events_url":"https://api.github.com/users/cesine/events{/privacy}","received_events_url":"https://api.github.com/users/cesine/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-22T17:46:37Z","updated_at":"2015-06-22T18:16:00Z","closed_at":"2015-06-22T18:16:00Z","body":"<a href=\"https://github.com/davidjb\"><img src=\"https://avatars.githubusercontent.com/u/1002811?v=3\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [davidjb](https://github.com/davidjb)**\n_Monday Jan 14, 2013 at 06:17 GMT_\n_Originally opened as https://github.com/jasondavies/d3-cloud/pull/8_\n\n----\n\nThis adds the ability to control the starting position ([x,y] array) for the initial word/term being placed in the word cloud and can be used like so:\r\n\r\n```\r\nvar width = 600;\r\nvar height = 300;\r\nd3.layout.cloud().size([width, height])\r\n          .startPoint([width/2.0, height/2.0])\r\n...\r\n```\r\nwhich would ensure the first term is placed at the centre of the cloud. The startPoint can be any x,y position, however.\r\n\r\nThe parameter name could be something better or more descriptive, but the idea is there.\n\n----\n\n_**[davidjb](https://github.com/davidjb)** included the following code: https://github.com/jasondavies/d3-cloud/pull/8/commits_\n"}}