{"action":"reopened","issue":{"url":"https://api.github.com/repos/novus/nvd3/issues/1090","labels_url":"https://api.github.com/repos/novus/nvd3/issues/1090/labels{/name}","comments_url":"https://api.github.com/repos/novus/nvd3/issues/1090/comments","events_url":"https://api.github.com/repos/novus/nvd3/issues/1090/events","html_url":"https://github.com/novus/nvd3/issues/1090","id":90193414,"number":1090,"title":"Line chart issues - problems interacting with the legend","user":{"login":"mpGitHub","id":8506767,"avatar_url":"https://avatars.githubusercontent.com/u/8506767?v=3","gravatar_id":"","url":"https://api.github.com/users/mpGitHub","html_url":"https://github.com/mpGitHub","followers_url":"https://api.github.com/users/mpGitHub/followers","following_url":"https://api.github.com/users/mpGitHub/following{/other_user}","gists_url":"https://api.github.com/users/mpGitHub/gists{/gist_id}","starred_url":"https://api.github.com/users/mpGitHub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpGitHub/subscriptions","organizations_url":"https://api.github.com/users/mpGitHub/orgs","repos_url":"https://api.github.com/users/mpGitHub/repos","events_url":"https://api.github.com/users/mpGitHub/events{/privacy}","received_events_url":"https://api.github.com/users/mpGitHub/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-22T19:48:05Z","updated_at":"2015-06-22T21:35:14Z","closed_at":null,"body":"Using a line chart in the latest release of 1.8.1 and clicking on the interactive legend duplicate IDs are created in the DOM.  This seems like a bug to me.  This causes issues when clicking around in IE with the interactive legend.\r\n\r\nSee pict of dup ids here:\r\n\r\n![dup ids](https://cloud.githubusercontent.com/assets/8506767/8290588/b06bfd66-18e9-11e5-9d25-5f0de3bbe852.png)\r\n\r\nThis similar issue occurred in 1.7.1 and I put a workaround in by adding in the following as a first step inside function chart(selection) in nv.models.legend = function() {\r\n\r\n    // This removes previously created elements so duplicate IDs are not created.\r\n    var closeDivId = \"X\" ;\r\n    var closeDiv = $(this).closest(\"div\") ;\r\n    if (closeDiv.length > 0)\r\n       closeDiv.find(\"#nv-point-clips\").remove();\r\n\r\nI noticed in 1.8.1 this part has changed to a class of \"nv-point-clips\".  I tried to implement a similar workaround again for this by changing to:\r\n    // NOTE: used .empty() instead of .remove().  The node was not recreated when remove was used. \r\n    closeDiv.find(\".nv-point-clips\").empty();\r\n\r\nThis correctly prevents any duplicate clippath from remaining in the DOM.  The colors in the graph are still wrongly set to duplicate colors when they should be unique.  Is there some other piece that is also wrong here?\r\n\r\nthoughts?  \r\n![bad chart colors](https://cloud.githubusercontent.com/assets/8506767/8291005/4adc2bbc-18ec-11e5-9c93-766814cb3220.png)\r\n\r\n\r\nThis same type of issue occurred in 1.7.1.  See my earlier post on this (unfortunately the same workaround does not work).\r\nhttps://github.com/novus/nvd3/issues/783\r\n\r\n"}}