{"action":"closed","issue":{"url":"https://api.github.com/repos/chartjs/Chart.js/issues/2817","repository_url":"https://api.github.com/repos/chartjs/Chart.js","labels_url":"https://api.github.com/repos/chartjs/Chart.js/issues/2817/labels{/name}","comments_url":"https://api.github.com/repos/chartjs/Chart.js/issues/2817/comments","events_url":"https://api.github.com/repos/chartjs/Chart.js/issues/2817/events","html_url":"https://github.com/chartjs/Chart.js/issues/2817","id":161377633,"number":2817,"title":"when multi charts , tooltip's value alway be the last chart","user":{"login":"langrenchuan","id":8500458,"avatar_url":"https://avatars.githubusercontent.com/u/8500458?v=3","gravatar_id":"","url":"https://api.github.com/users/langrenchuan","html_url":"https://github.com/langrenchuan","followers_url":"https://api.github.com/users/langrenchuan/followers","following_url":"https://api.github.com/users/langrenchuan/following{/other_user}","gists_url":"https://api.github.com/users/langrenchuan/gists{/gist_id}","starred_url":"https://api.github.com/users/langrenchuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/langrenchuan/subscriptions","organizations_url":"https://api.github.com/users/langrenchuan/orgs","repos_url":"https://api.github.com/users/langrenchuan/repos","events_url":"https://api.github.com/users/langrenchuan/events{/privacy}","received_events_url":"https://api.github.com/users/langrenchuan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-21T08:33:36Z","updated_at":"2016-06-21T10:58:00Z","closed_at":"2016-06-21T10:58:00Z","body":"when i have new multi `charts,the` tooltip always show me the last chart's `value` like the image\r\n\r\n![image](https://cloud.githubusercontent.com/assets/8500458/16223135/768eb746-37ce-11e6-9e21-46a9d7e24ac9.png)\r\n\r\n\r\n```\r\nfor (var i = 0, l = data.length; i < l; i ++) {\r\n         var v = data[i];\r\n         if (v != undefined) {\r\n           temConfig[i] = config;\r\n           var id = \"canvas\" + i;\r\n           temConfig[i].data.labels = v.time;\r\n           temConfig[i].data.datasets[0]['data'] = v.cost;\r\n           temConfig[i].data.datasets[1]['data'] = v.qps;\r\n           temConfig[i].data.datasets[2]['data'] = v.sucRate;\r\n           temConfig[i].options.title.text = \"Preparing \"+ i +\" concurrent users for battle\";\r\n           $(\"body\").append('<div style=\"width:75%;\"><canvas id=\"'+ id +'\"></canvas></div>');\r\n           ctx[i] = document.getElementById(id).getContext(\"2d\");\r\n           new Chart(ctx[i], temConfig[i]);\r\n         }\r\n       }\r\n```"}}
{"actor":{"display_login":"etimberg"}}