系统改版中发现,原来在3.1.x 版本中正常显示的曲线图,在3.2.x以上版本中在触发tooltip时会出现双阴影
Version & Environment [版本及环境]
配置项如下
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 }
]
}