{"action":"opened","issue":{"url":"https://api.github.com/repos/BigFatDog/parcoords-es/issues/21","repository_url":"https://api.github.com/repos/BigFatDog/parcoords-es","labels_url":"https://api.github.com/repos/BigFatDog/parcoords-es/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/BigFatDog/parcoords-es/issues/21/comments","events_url":"https://api.github.com/repos/BigFatDog/parcoords-es/issues/21/events","html_url":"https://github.com/BigFatDog/parcoords-es/issues/21","id":333088769,"node_id":"MDU6SXNzdWUzMzMwODg3Njk=","number":21,"title":"Two parcoords instances are linked","user":{"login":"BigFatDog","id":5818886,"node_id":"MDQ6VXNlcjU4MTg4ODY=","avatar_url":"https://avatars1.githubusercontent.com/u/5818886?v=4","gravatar_id":"","url":"https://api.github.com/users/BigFatDog","html_url":"https://github.com/BigFatDog","followers_url":"https://api.github.com/users/BigFatDog/followers","following_url":"https://api.github.com/users/BigFatDog/following{/other_user}","gists_url":"https://api.github.com/users/BigFatDog/gists{/gist_id}","starred_url":"https://api.github.com/users/BigFatDog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BigFatDog/subscriptions","organizations_url":"https://api.github.com/users/BigFatDog/orgs","repos_url":"https://api.github.com/users/BigFatDog/repos","events_url":"https://api.github.com/users/BigFatDog/events{/privacy}","received_events_url":"https://api.github.com/users/BigFatDog/received_events","type":"User","site_admin":false},"labels":[{"id":617624827,"node_id":"MDU6TGFiZWw2MTc2MjQ4Mjc=","url":"https://api.github.com/repos/BigFatDog/parcoords-es/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"BigFatDog","id":5818886,"node_id":"MDQ6VXNlcjU4MTg4ODY=","avatar_url":"https://avatars1.githubusercontent.com/u/5818886?v=4","gravatar_id":"","url":"https://api.github.com/users/BigFatDog","html_url":"https://github.com/BigFatDog","followers_url":"https://api.github.com/users/BigFatDog/followers","following_url":"https://api.github.com/users/BigFatDog/following{/other_user}","gists_url":"https://api.github.com/users/BigFatDog/gists{/gist_id}","starred_url":"https://api.github.com/users/BigFatDog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BigFatDog/subscriptions","organizations_url":"https://api.github.com/users/BigFatDog/orgs","repos_url":"https://api.github.com/users/BigFatDog/repos","events_url":"https://api.github.com/users/BigFatDog/events{/privacy}","received_events_url":"https://api.github.com/users/BigFatDog/received_events","type":"User","site_admin":false},"assignees":[{"login":"BigFatDog","id":5818886,"node_id":"MDQ6VXNlcjU4MTg4ODY=","avatar_url":"https://avatars1.githubusercontent.com/u/5818886?v=4","gravatar_id":"","url":"https://api.github.com/users/BigFatDog","html_url":"https://github.com/BigFatDog","followers_url":"https://api.github.com/users/BigFatDog/followers","following_url":"https://api.github.com/users/BigFatDog/following{/other_user}","gists_url":"https://api.github.com/users/BigFatDog/gists{/gist_id}","starred_url":"https://api.github.com/users/BigFatDog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BigFatDog/subscriptions","organizations_url":"https://api.github.com/users/BigFatDog/orgs","repos_url":"https://api.github.com/users/BigFatDog/repos","events_url":"https://api.github.com/users/BigFatDog/events{/privacy}","received_events_url":"https://api.github.com/users/BigFatDog/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-06-17T20:02:27Z","updated_at":"2018-06-17T20:02:27Z","closed_at":null,"author_association":"OWNER","body":"@joshhjacobson mentioned a bug in #14 's follow up:\r\n\r\n> Another strange thing happens when working with two ParCoords variables:\r\n```\r\n       var pc1 = ParCoords()(\"#plot01\")\r\n            .alpha(0.4)\r\n        var pc2 = ParCoords()(\"#plot02\")\r\n            .alpha(0.4)\r\n\r\n        // load csv file and create the chart\r\n        d3.csv('data/cars.csv').then(function(data) {\r\n            pc1\r\n                .data(data)\r\n                .hideAxis([\"name\"])\r\n                .composite(\"darker\")\r\n                .render()\r\n                .shadows()\r\n                .reorderable()\r\n                .brushMode(\"1D-axes\")  // enable brushing\r\n                .on(\"brushend\", function(){\r\n                  console.log(pc1.selected());\r\n                  console.log(pc2.selected());\r\n                });\r\n\r\n            pc2\r\n                .data(data)\r\n                .hideAxis([\"name\"])\r\n                .composite(\"darker\")\r\n                .render()\r\n                .shadows()\r\n                .reorderable()\r\n                .brushMode(\"1D-axes\")  // enable brushing\r\n                .on(\"brushend\", function(){\r\n                  console.log(pc1.selected());\r\n                  console.log(pc2.selected());\r\n                });\r\n        });\r\n\r\n        d3.select('#brushReset').on('click', function () {\r\n            pc1.brushReset();\r\n            pc2.brushReset();\r\n\r\n        });\r\n```\r\n> The two plots seem to be linked, in that console.log(pc1.selected()) and console.log(pc2.selected()) always return the same data even when brushes are different between plots. Could this be because of the way I'm loading the data?\r\n\r\n> Interestingly, you must also click the brushReset button twice in order for both plots to refresh."}}
{"actor":{"display_login":"BigFatDog"}}