{"action":"created","issue":{"url":"https://api.github.com/repos/ecomfe/echarts/issues/3052","repository_url":"https://api.github.com/repos/ecomfe/echarts","labels_url":"https://api.github.com/repos/ecomfe/echarts/issues/3052/labels{/name}","comments_url":"https://api.github.com/repos/ecomfe/echarts/issues/3052/comments","events_url":"https://api.github.com/repos/ecomfe/echarts/issues/3052/events","html_url":"https://github.com/ecomfe/echarts/issues/3052","id":150252018,"number":3052,"title":"使用canvas创建画布时的小问题","user":{"login":"xlgray","id":17919264,"avatar_url":"https://avatars.githubusercontent.com/u/17919264?v=3","gravatar_id":"","url":"https://api.github.com/users/xlgray","html_url":"https://github.com/xlgray","followers_url":"https://api.github.com/users/xlgray/followers","following_url":"https://api.github.com/users/xlgray/following{/other_user}","gists_url":"https://api.github.com/users/xlgray/gists{/gist_id}","starred_url":"https://api.github.com/users/xlgray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xlgray/subscriptions","organizations_url":"https://api.github.com/users/xlgray/orgs","repos_url":"https://api.github.com/users/xlgray/repos","events_url":"https://api.github.com/users/xlgray/events{/privacy}","received_events_url":"https://api.github.com/users/xlgray/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-22T03:05:14Z","updated_at":"2016-04-22T03:09:14Z","closed_at":null,"body":"<!--\r\n为了方便我们能够复现和修复 bug，请遵从下面的规范描述您的问题。\r\n-->\r\n#### 问题简述 (One-line summary)\r\n\r\n在html中创建画布时，一开始使用canvas，能够画出图形，但是不能显示tooltip，而在option中明明已经设置了。\r\n\r\n在所有设置及其他代码均不变的情况下，改用教程中说的div创建画布，tooltip能够正常显示。\r\n\r\n很多时候画图用的都是canvas，不知道为什么用在这里会有小问题。应该算是一个bug吧。\r\n\r\n\r\n#### 版本及环境 (Version & Environment)\r\n+ ECharts 版本 (ECharts version):ECharts 3.1.6\r\n+ 浏览器类型和版本 (Browser version): Chrome, IE8\r\n+ 操作系统类型和版本 (OS Version):Windows\r\n\r\n\r\n#### 重现步骤 (Steps to reproduce)\r\n1.\r\n2.\r\n\r\n\r\n#### 期望结果 (Expected behaviour)\r\n\r\n\r\n\r\n#### 可能哪里有问题 (What went wrong)\r\n\r\n\r\n\r\n#### ECharts配置项 (ECharts option)\r\n<!-- 下方贴你的option，注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。\r\n最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing\r\n-->\r\n\r\n\r\n\r\n#### 其他信息 (Other comments)\r\n<!-- 例如，截图或线上实例 (JSFiddle/JSBin/Codepen) (For example: Screenshot or Online demo) -->\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ecomfe/echarts/issues/comments/213224490","html_url":"https://github.com/ecomfe/echarts/issues/3052#issuecomment-213224490","issue_url":"https://api.github.com/repos/ecomfe/echarts/issues/3052","id":213224490,"user":{"login":"pissang","id":841551,"avatar_url":"https://avatars.githubusercontent.com/u/841551?v=3","gravatar_id":"","url":"https://api.github.com/users/pissang","html_url":"https://github.com/pissang","followers_url":"https://api.github.com/users/pissang/followers","following_url":"https://api.github.com/users/pissang/following{/other_user}","gists_url":"https://api.github.com/users/pissang/gists{/gist_id}","starred_url":"https://api.github.com/users/pissang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pissang/subscriptions","organizations_url":"https://api.github.com/users/pissang/orgs","repos_url":"https://api.github.com/users/pissang/repos","events_url":"https://api.github.com/users/pissang/events{/privacy}","received_events_url":"https://api.github.com/users/pissang/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T03:09:14Z","updated_at":"2016-04-22T03:09:14Z","body":"需要 tooltip 的时候用 div 就行，内部会创建 canvas，只有在无法创建 div 的时候可以用 canvas，比如 node 端，或者需要生成静态图片的时候，但是这种时候也不需要 tooltip"}}