{"action":"created","issue":{"url":"https://api.github.com/repos/mbostock/d3/issues/2726","labels_url":"https://api.github.com/repos/mbostock/d3/issues/2726/labels{/name}","comments_url":"https://api.github.com/repos/mbostock/d3/issues/2726/comments","events_url":"https://api.github.com/repos/mbostock/d3/issues/2726/events","html_url":"https://github.com/mbostock/d3/issues/2726","id":129858042,"number":2726,"title":".click() event not working on <path> element","user":{"login":"avipersin","id":8727319,"avatar_url":"https://avatars.githubusercontent.com/u/8727319?v=3","gravatar_id":"","url":"https://api.github.com/users/avipersin","html_url":"https://github.com/avipersin","followers_url":"https://api.github.com/users/avipersin/followers","following_url":"https://api.github.com/users/avipersin/following{/other_user}","gists_url":"https://api.github.com/users/avipersin/gists{/gist_id}","starred_url":"https://api.github.com/users/avipersin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avipersin/subscriptions","organizations_url":"https://api.github.com/users/avipersin/orgs","repos_url":"https://api.github.com/users/avipersin/repos","events_url":"https://api.github.com/users/avipersin/events{/privacy}","received_events_url":"https://api.github.com/users/avipersin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-29T19:23:55Z","updated_at":"2016-01-29T19:38:41Z","closed_at":"2016-01-29T19:38:41Z","body":"Here is the jsfiddle: https://jsfiddle.net/ojadbpsa/2/\r\n\r\nTargeting the hover event works fine--If you hover over the legend lines, you will see the corresponding line light up.\r\n\r\nTargeting the click event doesn't work at all. Clicking the legend lines should print \"here\" to the console.\r\n\r\nYou can find these (hover and click) functions at the bottom of the file with these declarations:\r\n``` \r\n$(this).hover(function () {\r\n...\r\n})\r\n```\r\nand\r\n```\r\n$(this).click(function () {\r\n   console.log(\"here\");\r\n});\r\n```\r\nHopefully I'm not missing something really simple here.\r\n"},"comment":{"url":"https://api.github.com/repos/mbostock/d3/issues/comments/176932724","html_url":"https://github.com/mbostock/d3/issues/2726#issuecomment-176932724","issue_url":"https://api.github.com/repos/mbostock/d3/issues/2726","id":176932724,"user":{"login":"mbostock","id":230541,"avatar_url":"https://avatars.githubusercontent.com/u/230541?v=3","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T19:38:41Z","updated_at":"2016-01-29T19:38:41Z","body":"Looks like you’re using jQuery to register the click handler; this is the D3 repository. Also, there’s a lot going on in this example, rather than being an isolated bug report, and I’m afraid I don’t have time to investigate exactly what’s going wrong here. There could be a variety of issues (such as another element on top of the path that is intercepting the event). You might try Stack Overflow tag d3.js if you want help, or the d3-js Google group. Good luck."}}