apache / echarts

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

Deselect map effect #15634

Open wh2017 opened 3 years ago

wh2017 commented 3 years ago

Version

5.1.2

Reproduction link

https://echarts.apache.org/examples/zh/editor.html?c=map-HK

Steps to reproduce

click map area

What is expected?

When clicking on the map area, the color of the selected area should not be changed

What is actually happening?

The color of the clicked area is changed. The selected effect is not required.Can I set it up?

image

image

echarts-bot[bot] commented 3 years ago

Hi! We've received your issue and please be patient to get responded. 🎉 The average response time is expected to be within one day for weekdays.

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 dev@echarts.apache.org. Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe to our mailing list.

Have a nice day! 🍵

plainheart commented 3 years ago

I remember that #15172 has provided a new value inherit for the color in emphasis state, but it doesn't work for select state. Not sure if it's necessary to support in the select state.

helgasoft commented 1 year ago

@wh2017, workaround is to just add selectedMode: false in the series, highlight (yellow) color will not persist after click anymore.

@plainheart, it seems there are three bugs still in v.5.4.1:

Demo Code

plainheart commented 1 year ago

Thank you @helgasoft I will take a look soon.