{"action":"created","issue":{"url":"https://api.github.com/repos/plotly/plotly.js/issues/910","repository_url":"https://api.github.com/repos/plotly/plotly.js","labels_url":"https://api.github.com/repos/plotly/plotly.js/issues/910/labels{/name}","comments_url":"https://api.github.com/repos/plotly/plotly.js/issues/910/comments","events_url":"https://api.github.com/repos/plotly/plotly.js/issues/910/events","html_url":"https://github.com/plotly/plotly.js/issues/910","id":175382954,"number":910,"title":"ScatterGL redraw only draws last object","user":{"login":"kevinwuhoo","id":531488,"avatar_url":"https://avatars.githubusercontent.com/u/531488?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinwuhoo","html_url":"https://github.com/kevinwuhoo","followers_url":"https://api.github.com/users/kevinwuhoo/followers","following_url":"https://api.github.com/users/kevinwuhoo/following{/other_user}","gists_url":"https://api.github.com/users/kevinwuhoo/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinwuhoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinwuhoo/subscriptions","organizations_url":"https://api.github.com/users/kevinwuhoo/orgs","repos_url":"https://api.github.com/users/kevinwuhoo/repos","events_url":"https://api.github.com/users/kevinwuhoo/events{/privacy}","received_events_url":"https://api.github.com/users/kevinwuhoo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/plotly/plotly.js/labels/type:%20bug","name":"type: bug","color":"e31a1c"}],"state":"open","locked":false,"assignee":{"login":"etpinard","id":6675409,"avatar_url":"https://avatars.githubusercontent.com/u/6675409?v=3","gravatar_id":"","url":"https://api.github.com/users/etpinard","html_url":"https://github.com/etpinard","followers_url":"https://api.github.com/users/etpinard/followers","following_url":"https://api.github.com/users/etpinard/following{/other_user}","gists_url":"https://api.github.com/users/etpinard/gists{/gist_id}","starred_url":"https://api.github.com/users/etpinard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etpinard/subscriptions","organizations_url":"https://api.github.com/users/etpinard/orgs","repos_url":"https://api.github.com/users/etpinard/repos","events_url":"https://api.github.com/users/etpinard/events{/privacy}","received_events_url":"https://api.github.com/users/etpinard/received_events","type":"User","site_admin":false},"assignees":[{"login":"etpinard","id":6675409,"avatar_url":"https://avatars.githubusercontent.com/u/6675409?v=3","gravatar_id":"","url":"https://api.github.com/users/etpinard","html_url":"https://github.com/etpinard","followers_url":"https://api.github.com/users/etpinard/followers","following_url":"https://api.github.com/users/etpinard/following{/other_user}","gists_url":"https://api.github.com/users/etpinard/gists{/gist_id}","starred_url":"https://api.github.com/users/etpinard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etpinard/subscriptions","organizations_url":"https://api.github.com/users/etpinard/orgs","repos_url":"https://api.github.com/users/etpinard/repos","events_url":"https://api.github.com/users/etpinard/events{/privacy}","received_events_url":"https://api.github.com/users/etpinard/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/plotly/plotly.js/milestones/3","html_url":"https://github.com/plotly/plotly.js/milestones/On-par%20gl2d","labels_url":"https://api.github.com/repos/plotly/plotly.js/milestones/3/labels","id":1467340,"number":3,"title":"On-par gl2d","description":"gl2d is out, but without some axis features found in plotly.js svg plots.","creator":{"login":"etpinard","id":6675409,"avatar_url":"https://avatars.githubusercontent.com/u/6675409?v=3","gravatar_id":"","url":"https://api.github.com/users/etpinard","html_url":"https://github.com/etpinard","followers_url":"https://api.github.com/users/etpinard/followers","following_url":"https://api.github.com/users/etpinard/following{/other_user}","gists_url":"https://api.github.com/users/etpinard/gists{/gist_id}","starred_url":"https://api.github.com/users/etpinard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etpinard/subscriptions","organizations_url":"https://api.github.com/users/etpinard/orgs","repos_url":"https://api.github.com/users/etpinard/repos","events_url":"https://api.github.com/users/etpinard/events{/privacy}","received_events_url":"https://api.github.com/users/etpinard/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":10,"state":"open","created_at":"2015-12-18T21:31:28Z","updated_at":"2016-09-07T13:48:42Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-09-07T00:18:06Z","updated_at":"2016-09-15T22:35:20Z","closed_at":null,"body":"When redrawing using ScatterGL and modifying the array of data, Plotly seems to render only the last data object in an array of data. Here's a minimal example of the bug: http://codepen.io/anon/pen/EgjYGa. If you change `scatter` to `scattergl`, it only ends up plotting the last data object (red line) passed to it.\r\n\r\nI've circumvented this by calling `Plotly.deleteTraces` then `Plotly.addTraces` which seems to accomplish the same thing, but causes an undesirable flicker since all the traces are getting deleted. Adding new traces before deleting the old ones seem to solve the flicker, but temporarily keeps both datasets while you're doing the swap. An example of this workaround is at the bottom of the above codepen. If you uncomment it and leave the type as `scattergl`, it seems to work."},"comment":{"url":"https://api.github.com/repos/plotly/plotly.js/issues/comments/247474198","html_url":"https://github.com/plotly/plotly.js/issues/910#issuecomment-247474198","issue_url":"https://api.github.com/repos/plotly/plotly.js/issues/910","id":247474198,"user":{"login":"etpinard","id":6675409,"avatar_url":"https://avatars.githubusercontent.com/u/6675409?v=3","gravatar_id":"","url":"https://api.github.com/users/etpinard","html_url":"https://github.com/etpinard","followers_url":"https://api.github.com/users/etpinard/followers","following_url":"https://api.github.com/users/etpinard/following{/other_user}","gists_url":"https://api.github.com/users/etpinard/gists{/gist_id}","starred_url":"https://api.github.com/users/etpinard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etpinard/subscriptions","organizations_url":"https://api.github.com/users/etpinard/orgs","repos_url":"https://api.github.com/users/etpinard/repos","events_url":"https://api.github.com/users/etpinard/events{/privacy}","received_events_url":"https://api.github.com/users/etpinard/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T22:35:20Z","updated_at":"2016-09-15T22:35:20Z","body":"fixed in https://github.com/plotly/plotly.js/pull/947"}}
{"actor":{"display_login":"etpinard"}}