echarts
echarts copied to clipboard
使用svg渲染时,tooltip指示轴文本内容显示位置错误
One-line summary [问题简述]

Version & Environment [版本及环境]
- ECharts version [ECharts 版本]:
- Browser version [浏览器类型和版本]:
- OS Version [操作系统类型和版本]:
Expected behaviour [期望结果]

ECharts option [ECharts配置项]
var myChart = echarts.init(document.querySelector("#container"), null, {
renderer: "canvas"
});
var option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
tooltip: {
type: 'axis',
axisPointer: {
type: 'cross'
}
},
yAxis: {
type: 'value'
},
series: [{
data: [820, 932, 901, 934, 1290, 1330, 1320],
type: 'line'
}]
};
myChart.setOption(option, true);
Other comments [其他信息]
Update I found that this bug does not happen with [email protected]
This bug started in 4.0.3 release commit: https://github.com/apache/incubator-echarts/commit/0d19f000884531b2ec45a8e7ed0de797ad636505?diff=unified
The 'fix stupid mistake' commit before it did not have this problem. Unfortunately the 4.0.3 release commit is very big.
Fixed in https://github.com/ecomfe/zrender/commit/bef18915d6cc66eb7b927cb327a2d38aa6e0fec4