{"action":"created","issue":{"url":"https://api.github.com/repos/chartjs/Chart.js/issues/3605","repository_url":"https://api.github.com/repos/chartjs/Chart.js","labels_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3605/labels{/name}","comments_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3605/comments","events_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3605/events","html_url":"https://github.com/chartjs/Chart.js/issues/3605","id":189632266,"number":3605,"title":"Contrary to docs, \"x-axis\" mode not equivalent to \"index with intersect\"","user":{"login":"RoxKilly","id":12346501,"avatar_url":"https://avatars.githubusercontent.com/u/12346501?v=3","gravatar_id":"","url":"https://api.github.com/users/RoxKilly","html_url":"https://github.com/RoxKilly","followers_url":"https://api.github.com/users/RoxKilly/followers","following_url":"https://api.github.com/users/RoxKilly/following{/other_user}","gists_url":"https://api.github.com/users/RoxKilly/gists{/gist_id}","starred_url":"https://api.github.com/users/RoxKilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoxKilly/subscriptions","organizations_url":"https://api.github.com/users/RoxKilly/orgs","repos_url":"https://api.github.com/users/RoxKilly/repos","events_url":"https://api.github.com/users/RoxKilly/events{/privacy}","received_events_url":"https://api.github.com/users/RoxKilly/received_events","type":"User","site_admin":false},"labels":[{"id":360095757,"url":"https://api.github.com/repos/chartjs/Chart.js/labels/Category:%20Documentation","name":"Category: Documentation","color":"7904af","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-16T08:45:22Z","updated_at":"2016-11-16T10:37:16Z","closed_at":null,"body":"## Expected Behavior\r\nThe docs on `v2.4` introduce new interaction modes. [They state](https://github.com/chartjs/Chart.js/blob/master/docs/01-Chart-Configuration.md#interaction-modes):\r\n\r\n> x-axis mode (deprecated): Behaves like 'index' mode with intersect = true\r\n\r\n## Current Behavior\r\nWhen I replace `x-axis` with `index` and `intersect=true` on a `Chart.js 2.4` chart, the behavior is not the same. Specifically, user action (hover or click) that would have activated elements before no longer do so.\r\n\r\n## Steps to Reproduce (for bugs)\r\n[Open this plunk](http://plnkr.co/edit/DoTsMU3SeUukgQUuLYa4?p=preview) (Typescript) and select file `app/app.component.ts` from the list left of the main window.\r\n\r\nThe top chart has `hover.mode = tooltips.mode = 'x-axis'`. Notice that as you hover the chart, the tooltips open and the chart emits the active element correctly (as indicated by the output under the chart)\r\n\r\nThe bottom chart has `hover.mode = tooltips.mode = 'index'` with `intersect = true`. To see the tooltip and emit the active element, the user has to position the mouse exactly on a datapoint.\r\n\r\n## Context\r\nI'd like to move away from deprecated properties (`mode:'x-axis'`), but I don't know how to reproduce my current user interface with the new API. Either the docs are inaccurate or I misunderstood them.\r\n\r\n## Environment\r\n`Chart.js 2.4` run on `Firefox 49`\r\n"},"comment":{"url":"https://api.github.com/repos/chartjs/Chart.js/issues/comments/260912170","html_url":"https://github.com/chartjs/Chart.js/issues/3605#issuecomment-260912170","issue_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3605","id":260912170,"user":{"login":"RoxKilly","id":12346501,"avatar_url":"https://avatars.githubusercontent.com/u/12346501?v=3","gravatar_id":"","url":"https://api.github.com/users/RoxKilly","html_url":"https://github.com/RoxKilly","followers_url":"https://api.github.com/users/RoxKilly/followers","following_url":"https://api.github.com/users/RoxKilly/following{/other_user}","gists_url":"https://api.github.com/users/RoxKilly/gists{/gist_id}","starred_url":"https://api.github.com/users/RoxKilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoxKilly/subscriptions","organizations_url":"https://api.github.com/users/RoxKilly/orgs","repos_url":"https://api.github.com/users/RoxKilly/repos","events_url":"https://api.github.com/users/RoxKilly/events{/privacy}","received_events_url":"https://api.github.com/users/RoxKilly/received_events","type":"User","site_admin":false},"created_at":"2016-11-16T10:37:16Z","updated_at":"2016-11-16T10:37:16Z","body":"I think I understand. Thanks. I'll let you decide when it's appropriate to close the issue."}}
{"actor":{"display_login":"RoxKilly"}}