echarts
echarts copied to clipboard
3.2.x 以上版本tooltip触发时出现双阴影
One-line summary [问题简述]
系统改版中发现,原来在3.1.x 版本中正常显示的曲线图,在3.2.x以上版本中在触发tooltip时会出现双阴影
Version & Environment [版本及环境]
- ECharts version [ECharts 版本]: 3.2.3
- Browser version [浏览器类型和版本]: chrome 55.0.2883.87
- OS Version [操作系统类型和版本]: Window7
Expected behaviour [期望结果]
toolTip触发时不出现双阴影
ECharts option [ECharts配置项]
option ={
"toolbox": {
"show": true,
"x2": "5%",
"feature": {
"dataZoom": { "yAxisIndex": "none" },
"magicType": { "type": ["line"] },
"restore": {},
"saveAsImage": {}
}
},
"grid": { "y": "16%" },
"legend": { "show": true, "y": "top", "x": "9%", "width": "70%", "data": ["DNS解析错误", "客户端读写缓存错误", "网络超时", "客户端存储空间不足", "文件不存在", "服务器响应超时"] },
"tooltip": { "trigger": "axis", "axisPointer": { "type": "shadow" } },
"xAxis": {
"type": "value",
"axisLabel": { "formatter": "{value} 次" },
"name": "总错误次数",
"nameLocation": "middle",
"nameGap": 40
},
"yAxis": [{
"axisLabel": {},
"splitLine": { "show": false },
"data": ["http://p1.pstatp.cosf6959fda29", "http://p1.pstatp.csdff96efcc83", "http://p1.pstasdf90013ee868ad07c3c", "http://p1.psdfeaf90e750ef1", "http://p1.pstsdf479f35", "http://p1.pstatp.cosdfdbee3cac", "http://sdf94d299399f", "http://p1.pstatsdf864d2e", "http://p1sdf03b485d82", "http://p1.pssdf6600f"],
"name": "错误URL",
"type": "category"
}, {
"position": "right",
"axisLine": { "onZero": false },
"splitLine": { "show": true },
"data": ["100.00%", "100.00%", "100.00%", "100.00%", "100.00%", "100.00%", "50.00%", "50.00%", "11.11%", "100.00%"],
"name": "实际错误率",
"type": "category"
}],
"series": [{ "data": [0, 0, 0, 0, 0, 0, 1, 0, 0, 1], "name": "DNS解析错误", "stack": "总量", "type": "bar", "yAxisIndex": 0 },
{ "data": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0], "name": "客户端读写缓存错误", "stack": "总量", "type": "bar", "yAxisIndex": 0 },
{ "data": [1, 0, 1, 0, 0, 1, 1, 0, 0, 0], "name": "网络超时", "stack": "总量", "type": "bar", "yAxisIndex": 0 },
{ "data": [0, 1, 0, 0, 0, 0, 0, 1, 0, 1], "name": "客户端存储空间不足", "stack": "总量", "type": "bar", "yAxisIndex": 0 },
{ "data": [0, 0, 0, 1, 0, 0, 0, 0, 0, 0], "name": "文件不存在", "stack": "总量", "type": "bar", "yAxisIndex": 0 },
{ "data": [0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "name": "服务器响应超时", "stack": "总量", "type": "bar", "yAxisIndex": 0 },
{ "data": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "name": "-", "stack": "总量", "type": "bar", "yAxisIndex": 1 }
]
}
Other comments [其他信息]
以下是最新3.3.2版本上的显示:

以下是3.1.3版本

用你的代码在 http://gallery.echartsjs.com 里试了一下,没有试出来双阴影。
这个问题真是奇怪,在 http://gallery.echartsjs.com 尝试了一下,是会出现上述的问题。
同时在chrome,火狐,360下尝试了一下,同样会出现该问题。
在gallery上创建了图表,可以看一下~ http://gallery.echartsjs.com/editor.html?c=xr1rL_wANl&comment=0