{"action":"closed","issue":{"url":"https://api.github.com/repos/almende/vis/issues/2469","repository_url":"https://api.github.com/repos/almende/vis","labels_url":"https://api.github.com/repos/almende/vis/issues/2469/labels{/name}","comments_url":"https://api.github.com/repos/almende/vis/issues/2469/comments","events_url":"https://api.github.com/repos/almende/vis/issues/2469/events","html_url":"https://github.com/almende/vis/issues/2469","id":196166220,"number":2469,"title":"itemSet is not defined for graph2D","user":{"login":"Tooa","id":5375334,"avatar_url":"https://avatars.githubusercontent.com/u/5375334?v=3","gravatar_id":"","url":"https://api.github.com/users/Tooa","html_url":"https://github.com/Tooa","followers_url":"https://api.github.com/users/Tooa/followers","following_url":"https://api.github.com/users/Tooa/following{/other_user}","gists_url":"https://api.github.com/users/Tooa/gists{/gist_id}","starred_url":"https://api.github.com/users/Tooa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tooa/subscriptions","organizations_url":"https://api.github.com/users/Tooa/orgs","repos_url":"https://api.github.com/users/Tooa/repos","events_url":"https://api.github.com/users/Tooa/events{/privacy}","received_events_url":"https://api.github.com/users/Tooa/received_events","type":"User","site_admin":false},"labels":[{"id":36077693,"url":"https://api.github.com/repos/almende/vis/labels/Confirmed%20Bug","name":"Confirmed Bug","color":"fc2929","default":false},{"id":114952411,"url":"https://api.github.com/repos/almende/vis/labels/Graph2D","name":"Graph2D","color":"006b75","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-16T22:16:21Z","updated_at":"2016-12-16T22:45:13Z","closed_at":"2016-12-16T22:45:13Z","body":"This issue was introduced in https://github.com/almende/vis/commit/a32a7f77f33ecf500edf19fa529b068c88253259. \r\n\r\n```\r\n<!doctype html>\r\n<html lang=\"us\">\r\n<body>\r\n    <head>\r\n        <script type='text/javascript'  src=\"./vis.js\"></script>\r\n        <link href=\"vis.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n   \r\n        <div id=\"visualization\"></div>\r\n<script type=\"text/javascript\">\r\n    var container = document.getElementById('visualization');\r\n  var items = [\r\n    {x: '2014-06-11', y: 10},\r\n    {x: '2014-06-12', y: 25},\r\n    {x: '2014-06-13', y: 30},\r\n    {x: '2014-06-14', y: 10},\r\n    {x: '2014-06-15', y: 15},\r\n    {x: '2014-06-16', y: 30}\r\n  ];\r\n\r\n  var dataset = new vis.DataSet(items);\r\n  var options = {\r\n    start: '2014-06-10',\r\n    end: '2014-06-18'\r\n  };\r\n  var graph2d = new vis.Graph2d(container, dataset, options);\r\n</script>\r\n</body>\r\n</html>\r\n```\r\nCauses\r\n\r\n```\r\nUncaught TypeError: Cannot read property 'initialItemSetDrawn' of undefined\r\n```\r\n\r\nRelated code\r\n```\r\nthis.on('_change', function (properties) {\r\n    if (me.itemSet.initialItemSetDrawn && properties && properties.queue == true) {\r\n      me._redraw()\r\n    } else {\r\n      me._origRedraw();\r\n    }\r\n  }); \r\n```\r\n\r\nThe graph2D component uses this code too, but has no `me.itemSet`. "}}
{"actor":{"display_login":"yotamberk"}}