Version
5.4.2
Link to Minimal Reproduction
Steps to Reproduce
Click on a cell in the heatmap
Current Behavior
All the cells in that particular column is selected
Expected Behavior
Only the clicked cell should be selected
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
2条答案
按热度按时间8tntrjer1#
This issue is labeled with
difficulty: easy
.@fvales Would you like to debug it by yourself? This is a quicker way to get your problem fixed. Or you may wait for the community to fix.
Please have a look at How to debug ECharts if you'd like to give a try. 🤓
mi7gmzs62#
selectedMode
is based on the name of the series. It is mainly used in 1*1 data dimensions such as legends and bar charts.Cells with the same name on the heat map will be selected at the same time.
In order to avoid modifying the source code, you can use mouse events to listen to
params
and highlight the style according to the data of the selected cell.