{"action":"created","issue":{"url":"https://api.github.com/repos/almende/vis/issues/1250","labels_url":"https://api.github.com/repos/almende/vis/issues/1250/labels{/name}","comments_url":"https://api.github.com/repos/almende/vis/issues/1250/comments","events_url":"https://api.github.com/repos/almende/vis/issues/1250/events","html_url":"https://github.com/almende/vis/issues/1250","id":103987613,"number":1250,"title":"Stored Networks","user":{"login":"abemammen","id":13650652,"avatar_url":"https://avatars.githubusercontent.com/u/13650652?v=3","gravatar_id":"","url":"https://api.github.com/users/abemammen","html_url":"https://github.com/abemammen","followers_url":"https://api.github.com/users/abemammen/followers","following_url":"https://api.github.com/users/abemammen/following{/other_user}","gists_url":"https://api.github.com/users/abemammen/gists{/gist_id}","starred_url":"https://api.github.com/users/abemammen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abemammen/subscriptions","organizations_url":"https://api.github.com/users/abemammen/orgs","repos_url":"https://api.github.com/users/abemammen/repos","events_url":"https://api.github.com/users/abemammen/events{/privacy}","received_events_url":"https://api.github.com/users/abemammen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-31T05:22:32Z","updated_at":"2015-08-31T16:36:41Z","closed_at":null,"body":"Create Network1\r\nVisualize it\r\nCreate Network2 (network1 not destroyed)\r\nVisualize it\r\nHow do you go back to visualizing Network1?\r\nnetwork1.redraw() or network1.focus(,,) doesn't do anything.\r\nJust a blank screen.\r\nUsing v4"},"comment":{"url":"https://api.github.com/repos/almende/vis/issues/comments/136423488","html_url":"https://github.com/almende/vis/issues/1250#issuecomment-136423488","issue_url":"https://api.github.com/repos/almende/vis/issues/1250","id":136423488,"user":{"login":"abemammen","id":13650652,"avatar_url":"https://avatars.githubusercontent.com/u/13650652?v=3","gravatar_id":"","url":"https://api.github.com/users/abemammen","html_url":"https://github.com/abemammen","followers_url":"https://api.github.com/users/abemammen/followers","following_url":"https://api.github.com/users/abemammen/following{/other_user}","gists_url":"https://api.github.com/users/abemammen/gists{/gist_id}","starred_url":"https://api.github.com/users/abemammen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abemammen/subscriptions","organizations_url":"https://api.github.com/users/abemammen/orgs","repos_url":"https://api.github.com/users/abemammen/repos","events_url":"https://api.github.com/users/abemammen/events{/privacy}","received_events_url":"https://api.github.com/users/abemammen/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T16:36:41Z","updated_at":"2015-08-31T16:36:41Z","body":"Ok thanks.\nThat seems to explain the behavior.\nIts too bad that the idea of binding a network to a container isn't more\ndynamic. But now I understand the use case your system was designed for.\nIn the design we have, there may be many (tens and possibly high tens)\nnetworks. I'll look into the feasibility of toggling between multiple\ncontainers via css but that doesn't appear to be immediately appealing.\n\nAgain, thanks for your help.\n\nOn Mon, Aug 31, 2015 at 8:53 AM, Alex <notifications@github.com> wrote:\n\n> Hi,\n>\n> The container is a div, not a canvas. This div is fully cleared of\n> contents when you initialize a network.\n>\n> At this line:\n>\n> network2 = new vis.Network(container, data2, opts2);\n>\n> You effectively delete the previous network. It is not a question of\n> reattaching or activating it, it does not work like that. The networks\n> assume you will not externally delete their DOM elements.\n>\n> You can however do this a different way, with two containers. You can use\n> css to overlay them if you'd like or toggle between them?\n>\n> If you hide the container, the network is not lost. If you don't hide but\n> if overwrite, you break the DOM connections and this is not the usecase we\n> designed it for.\n>\n> Regards\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/almende/vis/issues/1250#issuecomment-136413467>.\n>\n\n\n\n-- \n_______________________\nAbe Mammen\namammen@matterport.com\n+1 925-577-5201\n"}}