apache / echarts

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

[Bug] Legend entries toggle function doesn't work correctly when having multiple legend elements #19924

Open kenjinz opened 6 months ago

kenjinz commented 6 months ago

Version

5.5.0

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=line-stack&code=PYBwLglsB2AEC8sDeAoWtJgDYFMBcya6GOAHmAQOQDKYAhgMYDWOAJrADITQ6VEC-AGiJhgwLJBAFUxDACcIAc0U45VOqQgBnPuiFFcK6KwIBtIuhmzYrOvTOUAahFY5gsAIKsdg2JQAiEHI4DGCUvjQ4dHIMABawAKLQity8ALoWsPqyVrK29rCmlAkAtnQQWOF-AKrQUHBeOmnC1rAARsBgoiUEAAwt1lo4uKFs0pmypeVYBABmdFhDE1mZ_ETNRIoKJoSyuLMUfgDMAKThmQqKsYeUACxnA-gdXcA9xw-ZDDD03Bx0bcMCGA5ABXHACAaicQdUjjWSzKJgEHBOGDOgANxwHi0AEkyippGtZESsgNSB5NFpUegwABPED4PwMOw4RTAOS086yDog4zRWkAcToUlg80WOEeNjsdAcAFkYFVKAAVMGKgDqbEVStiIMVADEFIrqHYjbzKBk9ANaRTtNSMPTGZR0QtVRCiEMFDgqYVMrliNA6CVHVMKlzrHSGVQsKkw7ItPRmFQlZ0FrHiPkZYUAIwAJn6sCzRxzvizvSzJaOt18AE58zmjnXSxbiNliH70AGg1RavVPN40zSHVGY5L0PHGEwkynKqOpQVTDm8yWABzFgvV8uwetVre13xHBv7purSXt2Cdx3OVzuRoD-2RvzRnh38eJvzJ-gz5YZsxZgCsdZFr4eabv-O5ZnusAHvmtzHsSp7LBeVCBMEoR3hGjpPrws6vpO77TneP6FEW-YHmuDabgeO5HJB0H7nmzaWr6iGBo61BRDE8RJCkz6zhhw68csuFTp-hHSmYq75tWQGwLWm7SeBOaQYWh4FiRjErOgGT8AA3EAA

Steps to Reproduce

The 'Email' entries selected is set to false by default. Toggle the 'Email' entries that currently is grayed out.

Current Behavior

The 'Email' entries is not enabled at the first time toggling.

Expected Behavior

The 'Email' entries should be enabled at the first time toggling.

Environment

- OS: Window 11
- Browser: Chrome
- Framework:

Any additional comments?

No response

helgasoft commented 6 months ago

workaround - since the legend is split in two parts, add selected: { Email: false } in both