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] Map has unwanted dots when setting legend option #20464

Open FirstVertex opened 3 weeks ago

FirstVertex commented 3 weeks ago

Version

5.5.1

Link to Minimal Reproduction

https://codepen.io/HugeHugh/pen/qBeYbQB

Steps to Reproduce

  1. in the JS of Codepen example, go to line 34 and remove the comment marker so that legend: { show: false } is active
  2. Notice that blue dots appear on every state

Current Behavior

Blue dots appearing on every state when using any option inside "legend" suboption

Expected Behavior

Do not want these dots on every state

Environment

- OS: Winders
- Browser: Chroam
- Framework: Angulare

Any additional comments?

Sometimes, we want to use Legend feature, but we never want these dots on each state.

Side note: another thing I noticed, that when you go to any echarts Map example, then you push the link to open in Codepen or Codesandbox, the Maps examples always fail because of CORS error when requesting the Geo json file async. As a workaround, I just pasted the UsaJson into my Codepen for this bug report.

helgasoft commented 3 weeks ago

definitely a bug, can confirm. Workaround is to use geo + series.map - Demo