Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用鼠标滚轮进行缩放后,鼠标移动到数据点上tooltip不会显示。 #5837

Closed
haoyi211 opened this issue May 25, 2017 · 0 comments
Labels

Comments

@haoyi211
Copy link

One-line summary [问题简述]

当在当前配置下,使用鼠标滚轮进行缩放后,鼠标移动到数据点上tooltip不会显示。

Version & Environment [版本及环境]

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

Expected behaviour [期望结果]

在鼠标滚轮进行放大缩小后,鼠标移动到数据点上可显示tooltip

ECharts option [ECharts配置项]

option = {
    title: {
        text: '大规模散点图'
    },
    tooltip : {
        trigger: 'item',
        showDelay : 0
    },
    
    legend: {
        data:['sin','cos']
    },
    dataZoom : [{
					type : 'inside',
					xAxisIndex : 0,
					filterMode : 'empty'
				}, {       
					type : 'inside',
					yAxisIndex : 0,
					filterMode : 'empty'
				}],
    toolbox: {
        show : true,
        feature : {
            mark : {show: true},
            dataZoom : {show: true},
            dataView : {show: true, readOnly: false},
            restore : {show: true},
            saveAsImage : {show: true}
        }
    },
    xAxis : [
        {
            type : 'value',
            scale:true
        }
    ],
    yAxis : [
        {
            type : 'value',
            scale:true
        }
    ],
    series : [
        {
            name:'sin',
            type:'scatter',
            large: true,
            symbolSize: 3,
            data: (function () {
                var d = [];
                var len = 10000;
                var x = 0;
                while (len--) {
                    x = (Math.random() * 10).toFixed(3) - 0;
                    d.push([
                        x,
                        //Math.random() * 10
                        (Math.sin(x) - x * (len % 2 ? 0.1 : -0.1) * Math.random()).toFixed(3) - 0
                    ]);
                }
                //console.log(d)
                return d;
            })()
        },
        {
            name:'cos',
            type:'scatter',
            large: true,
            symbolSize: 2,
            data: (function () {
                var d = [];
                var len = 20000;
                var x = 0;
                while (len--) {
                    x = (Math.random() * 10).toFixed(3) - 0;
                    d.push([
                        x,
                        //Math.random() * 10
                        (Math.cos(x) - x * (len % 2 ? 0.1 : -0.1) * Math.random()).toFixed(3) - 0
                    ]);
                }
                //console.log(d)
                return d;
            })()
        }
    ]
};

Other comments [其他信息]

@pissang pissang added the bug label May 26, 2017
@100pah 100pah closed this as completed in eae4fd5 May 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants