echarts icon indicating copy to clipboard operation
echarts copied to clipboard

使用svg渲染时,tooltip指示轴文本内容显示位置错误

Open realeve opened this issue 8 years ago • 3 comments

One-line summary [问题简述]

image

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]:
  • Browser version [浏览器类型和版本]:
  • OS Version [操作系统类型和版本]:

Expected behaviour [期望结果]

image

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 [其他信息]

realeve avatar Mar 16 '18 01:03 realeve

Update I found that this bug does not happen with [email protected]

Paul-Kijtapart avatar Mar 16 '18 18:03 Paul-Kijtapart

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.

mecha9 avatar Apr 10 '18 23:04 mecha9

Fixed in https://github.com/ecomfe/zrender/commit/bef18915d6cc66eb7b927cb327a2d38aa6e0fec4

Ovilia avatar Apr 16 '18 07:04 Ovilia