Can't disable emphasis state in Echarts 5.x ?
See original GitHub issueVersion
5.1.1
Reproduction link
https://jsfiddle.net/qcmgetan/
Steps to reproduce
Simply mouse over the serie.
What is expected?
Emphasis state should be disabled
What is actually happening?
Emphasis state is not disabled
I can’t manage by any way to prevent my series to go in emphasis state on mouse over, though emphasis.focus: "none"
and emphasis.scale: false
or even serie.silent: true
are set.
lineStyle.width grows to 1px more and areaStyle.color also change.
The weird part is that if you set serie.emphasis.lineStyle.width
to 1 it takes account of it and “fix” the problem, so it looks like emphasis is still enabled therefore emphasis.scale
is set to false
. I could go with that but I couldn’t manage to find a way to set serie.areaStyle.opacity
as identical.
If I set serie.emphasis: null
, serie.lineStyle.width
do not change but serie.areaStyle.color
does.
I did not have this issue with Echarts 4.x
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (7 by maintainers)
Top GitHub Comments
+1
On very large series this leads to some performance loss, ideally this functionality can be disabled altogether.
Overall, it would be better to revert the design about ‘[Design] Bolder lineWidth when hover.’ #12931