{"action":"closed","issue":{"url":"https://api.github.com/repos/chartjs/Chart.js/issues/3633","repository_url":"https://api.github.com/repos/chartjs/Chart.js","labels_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3633/labels{/name}","comments_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3633/comments","events_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3633/events","html_url":"https://github.com/chartjs/Chart.js/issues/3633","id":191079816,"number":3633,"title":"[BUG] Missing parameter (\"options\") for method Chart.Interaction.modes.dataset(chart, e, options)","user":{"login":"fernandocode","id":3801304,"avatar_url":"https://avatars.githubusercontent.com/u/3801304?v=3","gravatar_id":"","url":"https://api.github.com/users/fernandocode","html_url":"https://github.com/fernandocode","followers_url":"https://api.github.com/users/fernandocode/followers","following_url":"https://api.github.com/users/fernandocode/following{/other_user}","gists_url":"https://api.github.com/users/fernandocode/gists{/gist_id}","starred_url":"https://api.github.com/users/fernandocode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fernandocode/subscriptions","organizations_url":"https://api.github.com/users/fernandocode/orgs","repos_url":"https://api.github.com/users/fernandocode/repos","events_url":"https://api.github.com/users/fernandocode/events{/privacy}","received_events_url":"https://api.github.com/users/fernandocode/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-22T17:56:14Z","updated_at":"2016-11-22T18:19:52Z","closed_at":"2016-11-22T18:19:52Z","body":"## Current Behavior\r\nError in call method [`Chart.Controller.prototype.getDatasetAtEvent(event);`](https://github.com/chartjs/Chart.js/blob/master/src/core/core.controller.js#L607-L609).\r\nCall method [`Chart.Interaction.modes.dataset(this, e)`](https://github.com/chartjs/Chart.js/blob/master/src/core/core.controller.js#L608) missing parameter `options`, what is needed in [`Chart.Interaction.modes.dataset(this, e, options)`](https://github.com/chartjs/Chart.js/blob/master/src/core/core.interaction.js#L168-L177) .\r\nThe error occurs in [`options.intersect`](https://github.com/chartjs/Chart.js/blob/master/src/core/core.interaction.js#L170), where `options` is `undefined`.\r\n\r\n## Possible Solution\r\nInsert parameter `options` in call method [`Chart.Interaction.modes.dataset(this, e)`](https://github.com/chartjs/Chart.js/blob/master/src/core/core.controller.js#L608). Consider a similar example in [`getElementsAtEvent`](https://github.com/chartjs/Chart.js/blob/master/src/core/core.controller.js#L591).\r\nOr add checked fallback in options parameter in [`Chart.Interaction.modes.dataset(this, e, options)` method ](https://github.com/chartjs/Chart.js/blob/master/src/core/core.interaction.js#L170).\r\n\r\n## Steps to Reproduce (for bugs)\r\n1. Open [this Codepen live example](http://codepen.io/anon/pen/zowrwV);\r\n2. Open the browser console;\r\n3. Click in button \"Call method Error\";\r\n4. See error in browser console;\r\n\r\n## Environment\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n* Chart.js version: 2.4.0\r\n* Browser name and version: Bug in all browsers, and debugged in Google Chrome 54.0.2840.99\r\n* Link to your project: http://codepen.io/anon/pen/zowrwV\r\n"}}
{"actor":{"display_login":"etimberg"}}