apache / apache/echarts

[Bug] Matrix component click event is not triggered even when silent is false

Open
#21,389 1 comment 0 reactions 0 assignees View on GitHub
bug en pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

6.0.0

### Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?code=zVWxbtswEN39Fa_oQBtVnaTeZHRo3Y6ZOhRB4eEsnSPCFGmQ56aGoX_viVWMNAk8FEUcbsd7d4_3-CiFrdjg8RGHESAhOLHbEoeugMYtSbS_NMTJpUjgFCwDgJqESvwwn0wB89ksT3f9fyvT60T_Vrh_brBHE91c9SPdfDDLv7lytAr1sz1eaHDg4gJfPa0cw3rhSFV_5UMuWcdeSqzJJS6GTSvcfpO94_Mc-7xr0CDLdk0bhjSMip1DY-W9cJIs5WqPxCLW34JQBRcixhLJpy1FVXTysM0XXtPOCWyC8cGzmuWusVWjD2zDKRNErgRNcC7cgXwNHwSVs9WmJzv2yjwlzAMic39pvdFizXExYN7OZrMnye-2lqbE1bDd3ecHIz_R4KCUWqipywKXywI_ye3UFmbRnw3XbNA9KnqxZ_1qzXNU5Bz03aibn1WBUbtfNBRlGvzYZAur3dc7n786YzUttWmSfzdV8Ck4nrpwO_5jKK7fKHjAzBVCjqMck-o7vBvSU08tK6abzH8D&enc=deflate

### Steps to Reproduce

1. Open the ECharts Official Editor with the Matrix Mini Bar Geo example: https://echarts.apache.org/examples/en/editor.html?c=matrix-mini-bar-geo
2. Insert the following code at the top of the editor's JavaScript area:

```
myChart.on('click', function (params) {
console.log(params);
});
```

3. Run the code.
4. Click on a text cell within the matrix (e.g., the cell displaying a city name like "Valais").

### Current Behavior

- When clicking on a text cell, no log output appears in the browser's console.
- When clicking on a bar chart, log output related to the series data is correctly displayed in the console.

### Expected Behavior

The click event should be triggered.

### Environment

```markdown
- OS: macOS Sequoia
- Browser: Chrome 141.0.7390.108
- Framework: React@18.3.1
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.