{"action":"closed","issue":{"url":"https://api.github.com/repos/nnnick/Chart.js/issues/1640","labels_url":"https://api.github.com/repos/nnnick/Chart.js/issues/1640/labels{/name}","comments_url":"https://api.github.com/repos/nnnick/Chart.js/issues/1640/comments","events_url":"https://api.github.com/repos/nnnick/Chart.js/issues/1640/events","html_url":"https://github.com/nnnick/Chart.js/issues/1640","id":116389653,"number":1640,"title":"v2.0 Update issue for bar chart","user":{"login":"andi-b","id":15804274,"avatar_url":"https://avatars.githubusercontent.com/u/15804274?v=3","gravatar_id":"","url":"https://api.github.com/users/andi-b","html_url":"https://github.com/andi-b","followers_url":"https://api.github.com/users/andi-b/followers","following_url":"https://api.github.com/users/andi-b/following{/other_user}","gists_url":"https://api.github.com/users/andi-b/gists{/gist_id}","starred_url":"https://api.github.com/users/andi-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andi-b/subscriptions","organizations_url":"https://api.github.com/users/andi-b/orgs","repos_url":"https://api.github.com/users/andi-b/repos","events_url":"https://api.github.com/users/andi-b/events{/privacy}","received_events_url":"https://api.github.com/users/andi-b/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nnnick/Chart.js/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/nnnick/Chart.js/labels/v2.x","name":"v2.x","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-11T18:09:12Z","updated_at":"2015-11-16T23:17:31Z","closed_at":"2015-11-16T23:17:31Z","body":"This almost works correctly - the initial loading of data is correct, but when I do the following with new data for barChartData :\r\n\r\n```\r\nwindow.myBar.data = barChartData;\r\nwindow.myBar.update();\r\n```\r\n\r\nOnly the chart itself updates with the correct data, but tooltip is incorrect. So I then did the following:\r\n\r\n```\r\nwindow.myBar.tooltip._data = barChartData;\r\nwindow.myBar.update();\r\n```\r\n\r\nThe label is now correct, but the value(yLabel) of the tooltip is still incorrect. It looks like it's the yLabel that is returning old data on line 2649 in Chart.js\r\n\r\n```\r\nreturn this._data.datasets[datasetIndex].label + ': ' + yLabel;\r\n```\r\n\r\nI may be going about this the wrong way, but from what I can tell this is the best and easiest method for me."}}