apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.69k stars 19.62k forks source link

[Bug] Emphasis label cannot be hidden on a funnel chart #20490

Closed abelykh0 closed 1 week ago

abelykh0 commented 1 week ago

Version

5.5.1

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=pie-simple&lang=ts&version=5.5.1&code=PYBwLglsB2AEC8sDeAoWsCmBbEALAhgM4SEBcya6sA9NQCYn4BGANhneWAE4CuGANJXQtmGFuVRUqhXMADu5AGb4WhAUKq1FwLlnxgwGLuQAUIfF3xYysfNACeASgQA-WACJ3gqem3QwAMoQAF4Y5ADMAAwaAL6UMd6walwQGDYA2hqSPiJMYhIaUjLySipqhbAJFbliADIQ0GEUPtKyCrDKqhgVVS1g9iBNAOSKPNCNLEOJUnT6-OSZLehIsABuKnzkAIyRACwAHPyw0FbDARgWAMa4sACi0ADmDRhDldM-K-ssm7AA7OEAViOJywwwAIhAuBhLmBXr0lp8Nk0AftIsDTuQhrc9BBJpUKgBdWKUIkxADcQA

Steps to Reproduce

Create a funnel chart with hidden labels and label lines, hide the emphasis label. It still shows up.

Current Behavior

Hover over any point, you will see the emphasis label.

Expected Behavior

Hover over any point, you SHOULD NOT see the emphasis label.

Environment

- OS: Windows
- Browser: Chrome
- Framework: N/A

Any additional comments?

Workaround exists, use

formatter: (params: any) => ""
plainheart commented 1 week ago
emphasis: {
    label: {
       show: false
    }
}
abelykh0 commented 1 week ago

In which version it is fixed?

abelykh0 commented 1 week ago

My example has this code and it the label is showing

plainheart commented 1 week ago

You need to add this option under the series option. Demo