{"action":"created","issue":{"url":"https://api.github.com/repos/ecomfe/echarts/issues/2527","labels_url":"https://api.github.com/repos/ecomfe/echarts/issues/2527/labels{/name}","comments_url":"https://api.github.com/repos/ecomfe/echarts/issues/2527/comments","events_url":"https://api.github.com/repos/ecomfe/echarts/issues/2527/events","html_url":"https://github.com/ecomfe/echarts/issues/2527","id":129135492,"number":2527,"title":"flip bar chart tooltip里的内容长度过长而div比较小的时候 tooltip 显示不全","user":{"login":"Jessie-feng","id":8412537,"avatar_url":"https://avatars.githubusercontent.com/u/8412537?v=3","gravatar_id":"","url":"https://api.github.com/users/Jessie-feng","html_url":"https://github.com/Jessie-feng","followers_url":"https://api.github.com/users/Jessie-feng/followers","following_url":"https://api.github.com/users/Jessie-feng/following{/other_user}","gists_url":"https://api.github.com/users/Jessie-feng/gists{/gist_id}","starred_url":"https://api.github.com/users/Jessie-feng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jessie-feng/subscriptions","organizations_url":"https://api.github.com/users/Jessie-feng/orgs","repos_url":"https://api.github.com/users/Jessie-feng/repos","events_url":"https://api.github.com/users/Jessie-feng/events{/privacy}","received_events_url":"https://api.github.com/users/Jessie-feng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-27T13:00:08Z","updated_at":"2016-01-27T13:05:12Z","closed_at":null,"body":"1. 放置Echart的div如果不够大，但是tooltip里的文字又比较长，tooltip经常被截掉。\r\n2.  测试过IE, Firefox, chrome\r\n3.  能否尽量把tooltip显示在div内，即使用户有时点击得比较靠近边缘\r\n2. option 如下：\r\n                var option = {\r\n                    title : {\r\n                           text: '世界人口总量',\r\n                           subtext: '数据来自网络'\r\n                       },\r\n                       tooltip : {\r\n                           trigger: 'item'\r\n                       },\r\n                       legend: {\r\n                           data:['2011年', '2012年']\r\n                       },\r\n                       toolbox: {\r\n                           show : true,\r\n                           feature : {\r\n                               mark : {show: true},\r\n                               dataView : {show: true, readOnly: false},\r\n                               magicType: {show: true, type: ['line', 'bar']},\r\n                               restore : {show: true},\r\n                               saveAsImage : {show: true}\r\n                           }\r\n                       },\r\n                       calculable : true,\r\n                       xAxis : [\r\n                           {\r\n                               type : 'value',\r\n                               boundaryGap : [0, 0.01]\r\n                           }\r\n                       ],\r\n                       yAxis : [\r\n                           {\r\n                               type : 'category',\r\n                               data : ['巴西abcabcabcabcabcabcab','印尼abcabcabcabcabcabcab','美国abcabcabcabcabcabcab','印度abcabcabcabcabcabcab','中国abcabcabcabcabcabcab','世界人口(万)abcabcabcabcabcabcab']\r\n                           }\r\n                       ],\r\n                       series : [\r\n                           {\r\n                               name:'2011年',\r\n                               type:'bar',\r\n                               data:[18203, 23489, 29034, 104970, 131744, 630230]\r\n                           },\r\n                           {\r\n                               name:'2012年',\r\n                               type:'bar',\r\n                               data:[19325, 23438, 31000, 121594, 134141, 681807]\r\n                           }\r\n                       ]\r\n                };\r\n"},"comment":{"url":"https://api.github.com/repos/ecomfe/echarts/issues/comments/175610753","html_url":"https://github.com/ecomfe/echarts/issues/2527#issuecomment-175610753","issue_url":"https://api.github.com/repos/ecomfe/echarts/issues/2527","id":175610753,"user":{"login":"Jessie-feng","id":8412537,"avatar_url":"https://avatars.githubusercontent.com/u/8412537?v=3","gravatar_id":"","url":"https://api.github.com/users/Jessie-feng","html_url":"https://github.com/Jessie-feng","followers_url":"https://api.github.com/users/Jessie-feng/followers","following_url":"https://api.github.com/users/Jessie-feng/following{/other_user}","gists_url":"https://api.github.com/users/Jessie-feng/gists{/gist_id}","starred_url":"https://api.github.com/users/Jessie-feng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jessie-feng/subscriptions","organizations_url":"https://api.github.com/users/Jessie-feng/orgs","repos_url":"https://api.github.com/users/Jessie-feng/repos","events_url":"https://api.github.com/users/Jessie-feng/events{/privacy}","received_events_url":"https://api.github.com/users/Jessie-feng/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T13:05:11Z","updated_at":"2016-01-27T13:05:11Z","body":"以上截图里的div的尺寸是 300*300"}}