-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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
Can't disable emphasis state in Echarts 5.x ? #14952
Comments
Hi! We've received your issue and please be patient to get responded. 🎉 In the meanwhile, please make sure that it contains a minimum reproducible demo and necessary images to illustrate. Otherwise, our committers will ask you to do so. A minimum reproducible demo should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster. You may also check out the API and chart option to get the answer. If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to [email protected]. Please attach the issue link if it's a technical question. If you are interested in the project, you may also subscribe our mailing list. Have a nice day! 🍵 |
Maybe you should remove the configuration of emphasis |
Do you mean you hope to keep the area color unchanged when hovering on the chart?
About color By default, the emphasized color is calculated by echarts.color.lift(normalColor, -0.1) If you want to get the emphasized color, you could use the above code. Related issue: #12369 About lineWidth Since v5.0.0, the line width will be bolder by 1px in emphasis state than the normal state. |
Having the same issue on version upgrade, chart with many data points became noticeably slower than before, already set the width of lines to be similar but can't disable the blur effect on hover which triggers some sort of paint job between mouseover events, (it was not there before). Hence tooltip have major lag and data loads slower. |
I think this would be another issue like #14698. |
@Raphyyy That's not enough. You still need to set |
Yes but can I do it if I do not have the hand on the |
Disable emphasis state but keep the tooltip and mouse event can be a useful feature. Similar issue #11788 |
Overall, it would be better to revert the design about '[Design] Bolder lineWidth when hover.' #12931 |
@plainheart I tried to set serie.areaStyle.color same as serie.emphasis.areaStyle.color but that is not fixing the issue. See https://jsfiddle.net/45scamx3/. Any idea to work around this ? |
@Raphyyy It seems to be possible if we specify the tooltip: {
...
axisPointer: {
z: 210
}
},
series: [
{
...
z: 200
},
{
...
z: 201
},
{
...
z: 202
},
....
] |
Any estimate for this fix? |
+1 On very large series this leads to some performance loss, ideally this functionality can be disabled altogether. |
Hello and thanks for the addition, much appreciated. Just a quick question, I was wondering if there is way to enable emphasis state only when hovering the legend, but disabled when hovering the charts ? Like highlighting the corresponding serie of the hovered legend with emphasis.focus = "self" |
Hello, I have a similar problem. I want to disable highlighting on hover but i still need the emphasis property to be different from the normal color because i use this for highlighting filtered data after using a searchbar. |
@selinanatschke-mms don't hesitate to upvote #17357 to support this feature |
Version
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"
andemphasis.scale: false
or evenserie.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 thereforeemphasis.scale
is set tofalse
. I could go with that but I couldn't manage to find a way to setserie.areaStyle.opacity
as identical.If I set
serie.emphasis: null
,serie.lineStyle.width
do not change butserie.areaStyle.color
does.I did not have this issue with Echarts 4.x
The text was updated successfully, but these errors were encountered: