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

sankey图中的links的value为0时连线中断 #12189

Closed
catkinmu opened this issue Feb 25, 2020 · 1 comment · Fixed by #12191
Closed

sankey图中的links的value为0时连线中断 #12189

catkinmu opened this issue Feb 25, 2020 · 1 comment · Fixed by #12191
Assignees
Labels

Comments

@catkinmu
Copy link

Version

4.6.0

Reproduction link

https://gallery.echartsjs.com/preview.html?c=xGC83VZS9&v=1

Steps to reproduce

option = {
series: {
type: 'sankey',
data: [{
name: 'a'
}, {
name: 'a1'
}, {
name: 'a2'
}, {
name: 'b1'
}, {
name: 'c'
}],
links: [{
source: 'a',
target: 'a1',
value: 5
}, {
source: 'a',
target: 'a2',
value: 10
},{
/此处连线中断,value不为0时可以显示连线/
source: 'a',
target: 'b1',
value: 0
}, {
source: 'b1',
target: 'c',
value: 2
}]
}
};

What is expected?

即使links中的value为0,也应该有一条连线

What is actually happening?

links中的value为0,连线中断

@echarts-bot
Copy link

echarts-bot bot commented Feb 25, 2020

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 pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Feb 25, 2020
@susiwen8 susiwen8 removed pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Feb 25, 2020
@susiwen8 susiwen8 self-assigned this Feb 25, 2020
100pah added a commit that referenced this issue Apr 21, 2020
Fix sankey link value is 0, node will disappear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants