Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 文档存在错误 #20494

Open
flower-string opened this issue Nov 10, 2024 · 2 comments
Open

[Bug] 文档存在错误 #20494

flower-string opened this issue Nov 10, 2024 · 2 comments
Labels
bug pending We are not sure about whether this is a bug/new feature.

Comments

@flower-string
Copy link

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 echarts-bot bot added the pending We are not sure about whether this is a bug/new feature. label Nov 10, 2024
Copy link

echarts-bot bot commented Nov 10, 2024

@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
Copy link

helgasoft commented Nov 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

2 participants