apache / apache/echarts

[Bug] Sankey breaks when there is a loop or a cycle

Open
#19,387 3 comments 1 reaction 0 assignees View on GitHub
bug en pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.4.3

### Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=sankey-itemstyle

### Steps to Reproduce

go to https://echarts.apache.org/examples/en/editor.html?c=sankey-itemstyle
change data set so that one of the data items loops back to the first entry and the sankey breaks

### Current Behavior

the sankey does not load

### Expected Behavior

the sankey load and where the data loops back my expectation is there is a line that shows the flow going back to a previous node

### Environment

```markdown
- OS: mac
- Browser: chrome
- Framework: i'm just using the website https://echarts.apache.org/examples/en/editor.html?c=sankey-itemstyle
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.