You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "JohnRock0422 (via GitHub)" <gi...@apache.org> on 2023/03/03 07:38:39 UTC
[GitHub] [echarts] JohnRock0422 opened a new issue, #18325: [Bug] Sankey桑基图 edgeLabel formatter中的value是data的value...
JohnRock0422 opened a new issue, #18325:
URL: https://github.com/apache/echarts/issues/18325
### Version
5.4.1
### Link to Minimal Reproduction
_No response_
### Steps to Reproduce
```
option = {
series: {
type: 'sankey',
layout: 'none',
emphasis: {
focus: 'adjacency'
},
data: [
{name: 'data-0'},
{name: 'data-1'},
{name: 'data-2'}
],
links: [
{
source: 'data-0', target: 'data-1',
value: 01
},
{
source: 'data-0', target: 'data-2',
value: 02
}
],
edgeLabel: {
show: true,
formatter: '{b}'
}
}
};
```
There are 3 data, and 2 links
on `edgeLabel.formatter`
when it is showing the link[0], the formatter will show the value of data[0].
when it is showing the link[1], the formatter will show the value of data[1].

### Current Behavior
when it is showing the link[0], the formatter will show the value of data[0].
when it is showing the link[1], the formatter will show the value of data[1].
### Expected Behavior
when it is showing the link[0], the formatter will show the value of link[0].
when it is showing the link[1], the formatter will show the value of link[1].
### Environment
```markdown
- OS:
- Browser:
- Framework:
```
### Any additional comments?
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] helgasoft commented on issue #18325: [Bug] Sankey桑基图 edgeLabel formatter中的value是data的value...
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18325:
URL: https://github.com/apache/echarts/issues/18325#issuecomment-1453910701
yes, looks like a bug. Probably related to _dataIndex_ mismatch on [this line](https://github.com/apache/echarts/blob/master/src/chart/sankey/SankeyView.ts#L227) (?)
Workaround solution, by adding an extra (invisible) link, [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=line-simple&theme=dark&code=PYBwLglsB2AEC8sDeBYAULWBnApgJwhywC5l1NMwBPEHUgciwENoBrHK-gGnIoBsmVYAFcwDaDBzdemHAFsQACyZYIJMhgqYAZsADGw9fSYATAFZM9OaHs4zYAXx6bMJpmCakA2vcxJoTHJ0sPRuHgC0AAz0Tr7IAUEMYUzhAIwxzlp-CcGh7ikATDH2ALqZ_BBs6j4uFEiwAPQNmJUAbmoQAEZ8OLA4AB5geEywfJWssGDAsNoQ_aNMnTh8WHGYWCJ4Vkn5UdyTTHgA5jhiIcnhReVZsK1MfMLBkddZY9A4AMrUPaRIoJYQajESKxWpaHAmE4AGUWy1-WEUwAA7qRtPdcA44qCbqgwRQNsItrkLtEuAdjqcdhF0i8tHcHk9UljaRobutNttzrtSeSTmc8hErmtbvdHqRIgUsaUyfYIdDYXxfnEEcjSENHjK8bo8HJ3GB8AwkJ0HPQ4k1tbqwPq8KQABQgACUCAAfMg8KdCXAQAA6ZLenIAanosAgJn68HoAZ9yQAktATAMANyY2opzAphyJoA)
.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] echarts-bot[bot] commented on issue #18325: [Bug] Sankey桑基图 edgeLabel formatter中的value是data的value...
Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #18325:
URL: https://github.com/apache/echarts/issues/18325#issuecomment-1453103902
@JohnRock0422 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. 🤗
<details><summary><b>TRANSLATED</b></summary><br>
**TITLE**
[Bug] Sankey Sankey The value in the edge Label formatter is the value of data...
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] Sankey桑基图 edgeLabel formatter中的value是data的value... [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #18325:
URL: https://github.com/apache/echarts/issues/18325#issuecomment-2692907535
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] Sankey桑基图 edgeLabel formatter中的value是data的value... [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #18325:
URL: https://github.com/apache/echarts/issues/18325#issuecomment-2711830223
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] Sankey桑基图 edgeLabel formatter中的value是data的value... [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #18325: [Bug] Sankey桑基图 edgeLabel formatter中的value是data的value...
URL: https://github.com/apache/echarts/issues/18325
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org