apache / apache/echarts-doc

The description of options.series.graph.links may wrong

Open
#252 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
262
Forks
204
Avg merge
1d 15h
Merged PRs (30d)
4

Description

![image](https://user-images.githubusercontent.com/67084930/168211316-2330a0e7-41d9-4cf2-863b-c6f09596da5b.png)

the docx write that the links.source is a string representing the [name of source node](https://echarts.apache.org/en/option.html#series-graph.data.name) on edge. Can also be a number representing the node index.
But in fact it it is the **[ String(id) of source node ]** .
In my test as for nodes the id is integer and the name is chinese character
![image](https://user-images.githubusercontent.com/67084930/168211789-6830bca8-b6f0-4c05-95e3-2058704b2f1b.png)
as for edges the source is the string of node‘s id
![image](https://user-images.githubusercontent.com/67084930/168211967-8f247469-81e6-42df-aac5-004b80892fb3.png)
the result is
![image](https://user-images.githubusercontent.com/67084930/168212047-2d159219-9e15-4933-bdb1-ff774b56e901.png)
![image](https://user-images.githubusercontent.com/67084930/168212389-ae2d6129-aac7-4603-a11c-04a57909f12d.png)
when the source and target be set the name of node the result is
![image](https://user-images.githubusercontent.com/67084930/168212388-a7473496-6400-45f2-8657-4497cfca5c85.png)

文档写的边的source和target是节点的name 实际上source和target 是节点的id的字符串
文档这里写错了

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.