{"action":"created","issue":{"url":"https://api.github.com/repos/almende/vis/issues/215","labels_url":"https://api.github.com/repos/almende/vis/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/almende/vis/issues/215/comments","events_url":"https://api.github.com/repos/almende/vis/issues/215/events","html_url":"https://github.com/almende/vis/issues/215","id":37716323,"number":215,"title":"Network: set initial position for nodes, but let them wander freely afterwards","user":{"login":"randombumper","id":3001813,"avatar_url":"https://avatars.githubusercontent.com/u/3001813?v=3","gravatar_id":"","url":"https://api.github.com/users/randombumper","html_url":"https://github.com/randombumper","followers_url":"https://api.github.com/users/randombumper/followers","following_url":"https://api.github.com/users/randombumper/following{/other_user}","gists_url":"https://api.github.com/users/randombumper/gists{/gist_id}","starred_url":"https://api.github.com/users/randombumper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randombumper/subscriptions","organizations_url":"https://api.github.com/users/randombumper/orgs","repos_url":"https://api.github.com/users/randombumper/repos","events_url":"https://api.github.com/users/randombumper/events{/privacy}","received_events_url":"https://api.github.com/users/randombumper/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/almende/vis/labels/Network","name":"Network","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2014-07-12T09:31:41Z","updated_at":"2015-11-12T08:58:45Z","closed_at":"2014-07-15T13:55:10Z","body":"Hi,\r\n\r\nI'm, working with the Network visualization, and I'm facing a problem: I need to specify the **initial** position of the nodes (the random initialization doesn't work for me), but I don't want them to remain fixed forever.\r\n\r\nI have tried this in several ways, to no avail:\r\n\r\n- Setting both `x`, `y`, `allowedToMoveX: true` and `allowedToMoveY: true` when defining the node set.\r\n- Setting `x` and `y` and later resetting them to `null` (nothing happens) or `undefined` (infinite recursion occurs, for some reason).\r\n- Setting `x` and `y` at definition, and later setting `allowedToMoveX` and `allowedToMoveY` to true.\r\n- Setting `allowedToMoveX: true` and `allowedToMoveX: true` at definition, and later setting `x` and `y`.\r\n\r\nThis all result in the same: **whenever I set `x` and `y` for a node, it will stay pinned forever**, no matter what I do or when I do it.\r\n\r\nFor extra background about my specific needs, I'm trying to define a network formed by three concentric rings (cycles of N nodes):\r\n\r\n![network-demo](https://cloud.githubusercontent.com/assets/3001813/3561075/c799ebd2-09a5-11e4-989f-3d44af212939.png)\r\n\r\nThe definition of the network itself doesn't provide enough information to render it properly, the result being variations of this:\r\n\r\n![non-concentric-cycles](https://cloud.githubusercontent.com/assets/3001813/3561085/55b1421c-09a6-11e4-9128-ed1178b1c52e.png)\r\n\r\nIf I were able to *hint* an initial `x` and `y` for each node and let them gravitationally wander off thereafter, I'm pretty sure I'd be able to achieve concentricity.\r\n\r\nAny ideas? :)\r\n\r\nThanks and regards,\r\n\r\nPablo."},"comment":{"url":"https://api.github.com/repos/almende/vis/issues/comments/156037581","html_url":"https://github.com/almende/vis/issues/215#issuecomment-156037581","issue_url":"https://api.github.com/repos/almende/vis/issues/215","id":156037581,"user":{"login":"AlexDM0","id":5363277,"avatar_url":"https://avatars.githubusercontent.com/u/5363277?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexDM0","html_url":"https://github.com/AlexDM0","followers_url":"https://api.github.com/users/AlexDM0/followers","following_url":"https://api.github.com/users/AlexDM0/following{/other_user}","gists_url":"https://api.github.com/users/AlexDM0/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexDM0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexDM0/subscriptions","organizations_url":"https://api.github.com/users/AlexDM0/orgs","repos_url":"https://api.github.com/users/AlexDM0/repos","events_url":"https://api.github.com/users/AlexDM0/events{/privacy}","received_events_url":"https://api.github.com/users/AlexDM0/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T08:58:45Z","updated_at":"2015-11-12T08:58:45Z","body":"Hi,\n\nIt would help a lot if I could see the code. Is it shareable? Or reproducible? Our examples do work with fixed locations. \n\nRegards\n\n> On 12 nov. 2015, at 09:07, rmasrani <notifications@github.com> wrote:\n> \n> Hi Alex. I did that, and I turned off physics. In fact, I tried practically every combination of manipulation I could think of – no luck.\n> \n> \n> \n> From: Alex [mailto:notifications@github.com] \n> Sent: November 11, 2015 11:59 PM\n> To: almende/vis <vis@noreply.github.com>\n> Cc: rmasrani <rmasrani@gmail.com>\n> Subject: Re: [vis] Network: set initial position for nodes, but let them wander freely afterwards (#215)\n> \n> \n> \n> Hi,\n> \n> It could be due to a bug in the improvedLayout. Try turning that off. \n> \n> Cheers!\n> \n> > On 12 nov. 2015, at 00:39, rmasrani <notifications@github.com> wrote:\n> > \n> > Hi Alex. Thanks for the great work. I have just started using your application, and have the following (I am afraid simple) problem. I have a network with 14,000 nodes and about 30,000 edges. I am able to create the network fine (it takes time). I saved the x/y coordinates, and created a JSON with these hard coded. Problem is that the network with the original output looks very different than the network with the x/y coordinates built in. I have tried various suggestions, but look like I am missing something simple. Physics is false. Any suggestions or links to existing docs? Thanks.\n> > \n> > —\n> > Reply to this email directly or view it on GitHub.\n> > \n> \n> \n> \n> —\n> Reply to this email directly or view it on GitHub <https://github.com/almende/vis/issues/215#issuecomment-156018658> .\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}