apache / apache/echarts

[Bug] selected in legend cannot retrieve information

Open
#20,930 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

https://echarts.apache.org/en/js/vendors/echarts/dist/echarts.min.js

### Link to Minimal Reproduction

https://codesandbox.io/p/sandbox/basic-line-chart-forked-8frt7c?file=%2Findex.js%3A13%2C5

### Steps to Reproduce

open the console and you can see that the output information is {}

### Current Behavior

open the console and you can see that the output information is {}

![Image](https://github.com/user-attachments/assets/ae527bd1-2730-492e-9bbe-b948e616d854)

### Expected Behavior

The selected in getOption can output the current information, such as the current status.

```
{
'Union Ads': true,
'Video Ads': true,
'Direct': true,
'Search Engine': true,
'Email': true
}
```

### Environment

```markdown
- OS: macOS Sonoma 14.1.1 (23B81)
- Browser: Chrome 134.0.6998.166
```

### 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.