apache / echarts

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

[Bug] 文档存在错误 #20494

Open flower-string opened 1 week ago

flower-string commented 1 week ago

Version

5.2.2

Link to Minimal Reproduction

不需要

Steps to Reproduce

image

image

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

Current Behavior

image

image

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

Expected Behavior

两种方案

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

Environment

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

Any additional comments?

No response

echarts-bot[bot] commented 1 week ago

@flower-string It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED
**TITLE** There is an error in the [Bug] documentation
helgasoft commented 1 week ago

duplicate of #19401, agree - documentation is incomplete. series-graph.links.source says - A string representing the name of source node on edge. Can also be a number representing the node index. But node name does not work if node id is present, Demo