{"action":"created","issue":{"url":"https://api.github.com/repos/datastorm-open/visNetwork/issues/56","repository_url":"https://api.github.com/repos/datastorm-open/visNetwork","labels_url":"https://api.github.com/repos/datastorm-open/visNetwork/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/datastorm-open/visNetwork/issues/56/comments","events_url":"https://api.github.com/repos/datastorm-open/visNetwork/issues/56/events","html_url":"https://github.com/datastorm-open/visNetwork/issues/56","id":138840340,"number":56,"title":"identical styles between default layout engine (force based) and igraph","user":{"login":"FrissAnalytics","id":11570078,"avatar_url":"https://avatars.githubusercontent.com/u/11570078?v=3","gravatar_id":"","url":"https://api.github.com/users/FrissAnalytics","html_url":"https://github.com/FrissAnalytics","followers_url":"https://api.github.com/users/FrissAnalytics/followers","following_url":"https://api.github.com/users/FrissAnalytics/following{/other_user}","gists_url":"https://api.github.com/users/FrissAnalytics/gists{/gist_id}","starred_url":"https://api.github.com/users/FrissAnalytics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FrissAnalytics/subscriptions","organizations_url":"https://api.github.com/users/FrissAnalytics/orgs","repos_url":"https://api.github.com/users/FrissAnalytics/repos","events_url":"https://api.github.com/users/FrissAnalytics/events{/privacy}","received_events_url":"https://api.github.com/users/FrissAnalytics/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-06T21:24:21Z","updated_at":"2016-05-04T12:22:12Z","closed_at":"2016-04-02T10:58:37Z","body":"Hi!\r\n\r\nHow can I make layouts based on igraph (e.g. via visIgraphLayout) to be identical in terms of node and edge styling to those based on the default rendering engine (in visNetwork), which is a force layout? For instance, now I use two settings to create a similar look between the two, but it is quite cumbersome and it doesn't work well. \r\n\r\nTo be clear, I would like to use the styling of visNetwork, with e.g. nodes styles set in the node dataframe, but use positions based on an igraph layout. \r\n\r\nIs this possible in an easy way?\r\n\r\nkind regards, Herman"},"comment":{"url":"https://api.github.com/repos/datastorm-open/visNetwork/issues/comments/216843600","html_url":"https://github.com/datastorm-open/visNetwork/issues/56#issuecomment-216843600","issue_url":"https://api.github.com/repos/datastorm-open/visNetwork/issues/56","id":216843600,"user":{"login":"bthieurmel","id":8750326,"avatar_url":"https://avatars.githubusercontent.com/u/8750326?v=3","gravatar_id":"","url":"https://api.github.com/users/bthieurmel","html_url":"https://github.com/bthieurmel","followers_url":"https://api.github.com/users/bthieurmel/followers","following_url":"https://api.github.com/users/bthieurmel/following{/other_user}","gists_url":"https://api.github.com/users/bthieurmel/gists{/gist_id}","starred_url":"https://api.github.com/users/bthieurmel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bthieurmel/subscriptions","organizations_url":"https://api.github.com/users/bthieurmel/orgs","repos_url":"https://api.github.com/users/bthieurmel/repos","events_url":"https://api.github.com/users/bthieurmel/events{/privacy}","received_events_url":"https://api.github.com/users/bthieurmel/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T12:22:12Z","updated_at":"2016-05-04T12:22:12Z","body":"Hi Herman,\r\n\r\nSize problem between ``igraph`` layout and ``vis.js`` layout is really more complicated than just a linear transformation. It's depends of the initial zoom set by ``vis.js`` rendering the network. (and so the range of the coordinates).\r\nAnd this parameter is function of number of nodes & windows size....\r\nI've try to implement a first fix, and I've just push a first proposition. \r\nCan you test and see with your use case ?\r\n\r\nThanks"}}