question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mousemove event only fires when mouse moves over circles on the line in line chart

See original GitHub issue

One-line summary [问题简述]

Mousemove event only fires when mouse moves over the circles on the line in line chart

Version & Environment [版本及环境]

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

Expected behaviour [期望结果]

Mousemove fires whenever mouse move over chart area, and not only circles on the line

ECharts option [ECharts配置项]

option = {
	// TITLE - False
	title: {
		show: false,
		text: 'Turbo Chart'
	},
	// TOOLBOX - False
	toolbox: {
		show: false
	},
	// LEGEND - False
	legend: {
		data: []
	},
	// TOOLTIP
	tooltip: {
		trigger: 'axis',
		showContent: true,
		axisPointer: {
			lineStyle: {
				color: '#20a5ad'
			}
		},
		backgroundColor: 'white',
		borderWidth: '1',
		borderColor: '#20a5ad',
		textStyle: {
			color: '#20a5ad'
		}
	},
	// GRID
	grid: {
		show: true,
		top: '3%',
		left: '2%',
		right: '2%',
		bottom: '3%',
		containLabel: true,
		borderColor: '#cccccc'
	},
	// X AXIS
	xAxis: {
		type: 'category',
		boundaryGap: false,
		axisTick: {
			show: false
		},
		axisLine: {
			show: false
		},
		splitLine: {
			show: true,
			lineStyle: {
				color: '#c1e4e4'
			}
		},
		axisLabel: {
			inside: false,
			margin: 5,
			textStyle: {
				color: '#339d9f',
				align: 'left',
				baseline: 'top'
			}
		}
	},
	// Y AXIS
	yAxis: {
		type: 'value',
		axisTick: {
			show: false
		},
		axisLine: {
			show: false
		},
		splitLine: {
			lineStyle: {
				color: '#c1e4e4'
			}
		},
		axisLabel: {
			formatter: '{value}%'
		}
	},
	series: [{
		type: 'line',
		data: []
	}]
}

Other comments [其他信息]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

4reactions
paskarancommented, Nov 18, 2019

Now over 2 years, there is still no fix to this issue ?

0reactions
github-actions[bot]commented, Sep 4, 2022

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mousemove event only fires when mouse moves over circles ...
Mousemove event only fires when mouse moves over circles on the line in line chart #6418. stale. Will be closed in 7 days....
Read more >
The mouse over event is not fired during the drag and drop ...
The problem is simply that the 'mouseover' event only gets triggered on the top-most element when two elements are painted one over top...
Read more >
Element: mousemove event - Web APIs | MDN
The mousemove event is fired at an element when a pointing device (usually a mouse) is moved while the cursor's hotspot is inside...
Read more >
[Solved]-d3.js Animation Follow Circles on Mouse Move-d3.js
You want a mouse-over to behave like a drag? node.on("mousemove", function(d){ d3.event.stopPropagation(); // stop the default event handling d.fixed = true ...
Read more >
Moving the mouse: mouseover/out, mouseenter/leave
The mouseover event occurs when a mouse pointer comes over an element, and mouseout – when it leaves. These events are special, because...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found