{"action":"closed","issue":{"url":"https://api.github.com/repos/vega/vega/issues/460","labels_url":"https://api.github.com/repos/vega/vega/issues/460/labels{/name}","comments_url":"https://api.github.com/repos/vega/vega/issues/460/comments","events_url":"https://api.github.com/repos/vega/vega/issues/460/events","html_url":"https://github.com/vega/vega/issues/460","id":119728629,"number":460,"title":"Documentation: Force layout 'drag' vs 'active' parameter","user":{"login":"Jerrythafast","id":2095375,"avatar_url":"https://avatars.githubusercontent.com/u/2095375?v=3","gravatar_id":"","url":"https://api.github.com/users/Jerrythafast","html_url":"https://github.com/Jerrythafast","followers_url":"https://api.github.com/users/Jerrythafast/followers","following_url":"https://api.github.com/users/Jerrythafast/following{/other_user}","gists_url":"https://api.github.com/users/Jerrythafast/gists{/gist_id}","starred_url":"https://api.github.com/users/Jerrythafast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jerrythafast/subscriptions","organizations_url":"https://api.github.com/users/Jerrythafast/orgs","repos_url":"https://api.github.com/users/Jerrythafast/repos","events_url":"https://api.github.com/users/Jerrythafast/events{/privacy}","received_events_url":"https://api.github.com/users/Jerrythafast/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vega/vega/labels/documentation","name":"documentation","color":"0b02e1"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-01T14:33:11Z","updated_at":"2015-12-06T19:56:06Z","closed_at":"2015-12-06T19:56:06Z","body":"Hey guys,\r\n\r\nI was looking at the [force_drag](http://vega.github.io/vega-editor/?mode=vega&spec=force_drag) example in the Editor and apparently it is using an undocumented parameter named `active`. After having looked at the [documentation](https://github.com/vega/vega/wiki/Data-Transforms#-force), I suspect the parameter name `drag` in the documentation is wrong and should be changed to `active`.\r\n\r\nEDIT: and perhaps also mention in the docs somewhere that the `source` and `target` attributes of the values in the `links` dataset should be indices into the `nodes` dataset. I was first trying to use references to the `nodes` objects themselves (e.g., `lookup` on the `nodes`) and then tried to use the `_id` attribute of the `nodes`, but apparently I should index into `nodes`. (Which raises two follow-up questions: why do it this way, and what happens to the indices if I dynamically add/remove objects to/from `nodes`?)\r\n\r\nJerry"}}