apache / apache/echarts

[Bug] 文档存在错误

Open
#20,494 2 comments 0 reactions 0 assignees View on GitHub
bug pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.2.2

### Link to Minimal Reproduction

不需要

### Steps to Reproduce

![image](https://github.com/user-attachments/assets/99ee9836-63c0-4c4e-871f-ddbff895ecbb)

![image](https://github.com/user-attachments/assets/69ce3226-890d-4f20-aaaf-b2195ec6d47c)

graph类型的link配置,文档中表示是使用nodes中的name作为依据,但是实际上是使用字符串的id字段,如果id不是字符串,则使用数组的索引,希望修复文档或者修复代码使其表现一致。

### Current Behavior

![image](https://github.com/user-attachments/assets/99ee9836-63c0-4c4e-871f-ddbff895ecbb)

![image](https://github.com/user-attachments/assets/69ce3226-890d-4f20-aaaf-b2195ec6d47c)

graph类型的link配置,文档中表示是使用nodes中的name作为依据,但是实际上是使用字符串的id字段,如果id不是字符串,则使用数组的索引,希望修复文档或者修复代码使其表现一致。

### Expected Behavior

两种方案
1. 修复文档,将name字段改为id,使得文档与实际表现一致
2. 修复代码,将id改为name,使其与文档一致

### Environment

```markdown
- OS:windows10
- Browser:chrome
- Framework:electron-vite
```

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