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

桑基图links中source和target值相同出现错误 #11594

Closed
pwj126 opened this issue Nov 8, 2019 · 5 comments
Closed

桑基图links中source和target值相同出现错误 #11594

pwj126 opened this issue Nov 8, 2019 · 5 comments
Assignees
Labels
en This issue is in English inactive Not active for some time or no response from the author. Will be closed soon. not-a-bug pending We are not sure about whether this is a bug/new feature. waiting-for: author

Comments

@pwj126
Copy link

pwj126 commented Nov 8, 2019

Version

4.1.0-release

Steps to reproduce

比如source=‘上海’ target = '上海' 时

What is expected?

可以出现闭环

What is actually happening?

出现问题: Sankey is a DAG, the original data has cycle!

@echarts-bot
Copy link

echarts-bot bot commented Nov 8, 2019

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.

If you are interested in the project, you may also subscribe our mail list.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added bug en This issue is in English pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Nov 8, 2019
@deqingli
Copy link
Member

Hi, this is the strategy we adopted. I just want to know why you want the source and target is the same.

@462937186
Copy link

如果
想让桑基图links中source和target值相同 你可以从数据源下手 循环一下然后加上索引

https://gallery.echartsjs.com/editor.html?c=xvJYS-Nge&comment=0

@Ovilia Ovilia added the inactive Not active for some time or no response from the author. Will be closed soon. label Jan 13, 2020
@echarts-bot
Copy link

echarts-bot bot commented Jan 13, 2020

This issue is closed due to not being active. Please feel free to open it again (for the author) or create a new one and reference this (for others) if you have further questions.

@echarts-bot echarts-bot bot closed this as completed Jan 13, 2020
@charleiWang
Copy link

links: [{
"source": "Venezuela",
"value": 3,
"target": "Bahamas"
}, {
"source": "Venezuela",
"value": 1,
"target": "Japan"
}, {
"source": "Iraq",
"value": 1,
"target": "Spain"
}, {
"source": "Iraq",
"value": 327,
"target": "India"
}, {
"source": "India",
"value": 32,
"target": "Iraq"
}]

这种,source!=target, 但是Iraq 和 India 是有循环的,这个也也会报错。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en This issue is in English inactive Not active for some time or no response from the author. Will be closed soon. not-a-bug pending We are not sure about whether this is a bug/new feature. waiting-for: author
Projects
None yet
Development

No branches or pull requests

5 participants