{"action":"created","issue":{"url":"https://api.github.com/repos/chartjs/Chart.js/issues/3340","repository_url":"https://api.github.com/repos/chartjs/Chart.js","labels_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3340/labels{/name}","comments_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3340/comments","events_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3340/events","html_url":"https://github.com/chartjs/Chart.js/issues/3340","id":178268546,"number":3340,"title":"Tooltip smooth transaction movement on points","user":{"login":"moohhoom","id":20688994,"avatar_url":"https://avatars.githubusercontent.com/u/20688994?v=3","gravatar_id":"","url":"https://api.github.com/users/moohhoom","html_url":"https://github.com/moohhoom","followers_url":"https://api.github.com/users/moohhoom/followers","following_url":"https://api.github.com/users/moohhoom/following{/other_user}","gists_url":"https://api.github.com/users/moohhoom/gists{/gist_id}","starred_url":"https://api.github.com/users/moohhoom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moohhoom/subscriptions","organizations_url":"https://api.github.com/users/moohhoom/orgs","repos_url":"https://api.github.com/users/moohhoom/repos","events_url":"https://api.github.com/users/moohhoom/events{/privacy}","received_events_url":"https://api.github.com/users/moohhoom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-21T07:31:55Z","updated_at":"2016-09-22T19:44:06Z","closed_at":null,"body":"i think you need to add the below in **bold** if condition to prevent tool-tip from disappearing between points to give it smooth movement.\r\n\r\nChart.bundle.js in eventHandler for tool-tip :\r\n\r\n.\r\n.\r\n.\r\n.\r\n\r\n\t\t// On Hover hook\r\n\t\t\tif (hoverOptions.onHover) {\r\n\t\t\t\thoverOptions.onHover.call(me, me.active);\r\n\t\t\t}\r\n\r\n\t\t\tif (e.type === 'mouseup' || e.type === 'click') {\r\n\t\t\t\tif (options.onClick) {\r\n\t\t\t\t\toptions.onClick.call(me, e, me.active);\r\n\t\t\t\t}\r\n\t\t\t\tif (me.legend && me.legend.handleEvent) {\r\n\t\t\t\t\tme.legend.handleEvent(e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\r\n**if (me.active.length) {**\r\n\r\n\r\n\r\n\r\n\t\t\t\t// Remove styling for last active (even if it may still be active)\r\n\t\t\t\tif (me.lastActive.length) {\r\n\t\t\t\t\tme.updateHoverStyle(me.lastActive, hoverOptions.mode, false);\r\n\t\t\t\t}\r\n\r\n.\r\n.\r\n\r\n\r\n\t\t\t\t\t\t// We only need to render at this point. Updating will cause scales to be\r\n\t\t\t\t\t\t// recomputed generating flicker & using more memory than necessary.\r\n\t\t\t\t\t\tme.render(700, true);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n**}**\t\t\t\r\n**else {**\r\n\t\t\t\t\t`// Remember Last Actives`\r\n\t\t\t\t\t`me.active = me.lastActive;`\r\n\t\t\t\t\t`me.tooltipActive = me.lastTooltipActive;`\r\n**}**\r\n\t\t\t\r\n\r\n\r\n\t\t\tme.lastActive = me.active;\r\n\t\t\tme.lastTooltipActive = me.tooltipActive;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\treturn me;\r\n\t\t}"},"comment":{"url":"https://api.github.com/repos/chartjs/Chart.js/issues/comments/249007724","html_url":"https://github.com/chartjs/Chart.js/issues/3340#issuecomment-249007724","issue_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3340","id":249007724,"user":{"login":"etimberg","id":6757853,"avatar_url":"https://avatars.githubusercontent.com/u/6757853?v=3","gravatar_id":"","url":"https://api.github.com/users/etimberg","html_url":"https://github.com/etimberg","followers_url":"https://api.github.com/users/etimberg/followers","following_url":"https://api.github.com/users/etimberg/following{/other_user}","gists_url":"https://api.github.com/users/etimberg/gists{/gist_id}","starred_url":"https://api.github.com/users/etimberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etimberg/subscriptions","organizations_url":"https://api.github.com/users/etimberg/orgs","repos_url":"https://api.github.com/users/etimberg/repos","events_url":"https://api.github.com/users/etimberg/events{/privacy}","received_events_url":"https://api.github.com/users/etimberg/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T19:44:06Z","updated_at":"2016-09-22T19:44:06Z","body":"Hmm, the issue I see is that it's impossible to remove the tooltip once it is visible in the first fiddle"}}
{"actor":{"display_login":"etimberg"}}