Skip to content

Can't disable emphasis state in Echarts 5.x ? #14952

@Raphyyy

Description

@Raphyyy

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" 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions