{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-echarts/issues/6365","repository_url":"https://api.github.com/repos/apache/incubator-echarts","labels_url":"https://api.github.com/repos/apache/incubator-echarts/issues/6365/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-echarts/issues/6365/comments","events_url":"https://api.github.com/repos/apache/incubator-echarts/issues/6365/events","html_url":"https://github.com/apache/incubator-echarts/issues/6365","id":247942811,"node_id":"MDU6SXNzdWUyNDc5NDI4MTE=","number":6365,"title":"Echart 桑基图内是否可以定义一个node显示的层级?","user":{"login":"terence1984","id":11771781,"node_id":"MDQ6VXNlcjExNzcxNzgx","avatar_url":"https://avatars2.githubusercontent.com/u/11771781?v=4","gravatar_id":"","url":"https://api.github.com/users/terence1984","html_url":"https://github.com/terence1984","followers_url":"https://api.github.com/users/terence1984/followers","following_url":"https://api.github.com/users/terence1984/following{/other_user}","gists_url":"https://api.github.com/users/terence1984/gists{/gist_id}","starred_url":"https://api.github.com/users/terence1984/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terence1984/subscriptions","organizations_url":"https://api.github.com/users/terence1984/orgs","repos_url":"https://api.github.com/users/terence1984/repos","events_url":"https://api.github.com/users/terence1984/events{/privacy}","received_events_url":"https://api.github.com/users/terence1984/received_events","type":"User","site_admin":false},"labels":[{"id":92942606,"node_id":"MDU6TGFiZWw5Mjk0MjYwNg==","url":"https://api.github.com/repos/apache/incubator-echarts/labels/new-feature","name":"new-feature","color":"fbca04","default":false},{"id":34378865,"node_id":"MDU6TGFiZWwzNDM3ODg2NQ==","url":"https://api.github.com/repos/apache/incubator-echarts/labels/support","name":"support","color":"604bac","default":false}],"state":"open","locked":false,"assignee":{"login":"deqingli","id":13548221,"node_id":"MDQ6VXNlcjEzNTQ4MjIx","avatar_url":"https://avatars1.githubusercontent.com/u/13548221?v=4","gravatar_id":"","url":"https://api.github.com/users/deqingli","html_url":"https://github.com/deqingli","followers_url":"https://api.github.com/users/deqingli/followers","following_url":"https://api.github.com/users/deqingli/following{/other_user}","gists_url":"https://api.github.com/users/deqingli/gists{/gist_id}","starred_url":"https://api.github.com/users/deqingli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deqingli/subscriptions","organizations_url":"https://api.github.com/users/deqingli/orgs","repos_url":"https://api.github.com/users/deqingli/repos","events_url":"https://api.github.com/users/deqingli/events{/privacy}","received_events_url":"https://api.github.com/users/deqingli/received_events","type":"User","site_admin":false},"assignees":[{"login":"deqingli","id":13548221,"node_id":"MDQ6VXNlcjEzNTQ4MjIx","avatar_url":"https://avatars1.githubusercontent.com/u/13548221?v=4","gravatar_id":"","url":"https://api.github.com/users/deqingli","html_url":"https://github.com/deqingli","followers_url":"https://api.github.com/users/deqingli/followers","following_url":"https://api.github.com/users/deqingli/following{/other_user}","gists_url":"https://api.github.com/users/deqingli/gists{/gist_id}","starred_url":"https://api.github.com/users/deqingli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deqingli/subscriptions","organizations_url":"https://api.github.com/users/deqingli/orgs","repos_url":"https://api.github.com/users/deqingli/repos","events_url":"https://api.github.com/users/deqingli/events{/privacy}","received_events_url":"https://api.github.com/users/deqingli/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2017-08-04T08:51:56Z","updated_at":"2018-12-05T01:16:28Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n为了方便我们能够复现和修复 bug，请遵从下面的规范描述您的问题。\r\n-->\r\n\r\n\r\n### One-line summary [问题简述]\r\n\r\n使用Echart的桑基图进行路径分析的可视化, 但是由于桑基图的规则，使每个路径的最后一页都显示在最后一个层级上，这样进行路径分析的可视化就不太匹配了。\r\n\r\n![sankey](https://user-images.githubusercontent.com/11771781/28961500-12aad30a-7935-11e7-8025-d0e92155c41f.PNG)\r\n\r\n\r\n### Version & Environment [版本及环境]\r\n+ ECharts version [ECharts 版本]:3.6.2\r\n+ Browser version [浏览器类型和版本]:Firefox 43\r\n+ OS Version [操作系统类型和版本]:Windows 7\r\n\r\n\r\n\r\n\r\n\r\n### Expected behaviour [期望结果]\r\n\r\n可以指定每个node所在层级\r\n\r\n\r\n\r\n### ECharts option [ECharts配置项]\r\n<!-- Copy and paste your 'echarts option' here. -->\r\n<!-- [下方贴你的option，注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->\r\n```javascript\r\n\r\nvar data = {\r\n    nodes:[{'name':'A'},{'name':'B'},{'name':'C'},{'name':'D'},{'name':'E'},{'name':'F'}],\r\n    links:[{'source':'A','target':'B',value:0.5},{'source':'B','target':'C',value:0.5},{'source':'C','target':'D',value:0.5},{'source':'A','target':'E',value:0.5},{'source':'B','target':'F',value:0.5}]\r\n}\r\noption = {\r\n        title: {\r\n            text: 'Sankey Diagram'\r\n        },\r\n        tooltip: {\r\n            trigger: 'item',\r\n            triggerOn: 'mousemove'\r\n\r\n        },\r\n        series: [\r\n            {\r\n                type: 'sankey',\r\n                layout:'none',\r\n                data: data.nodes,\r\n                links: data.links,\r\n                itemStyle: {\r\n                    normal: {\r\n                        borderWidth: 1,\r\n                        borderColor: '#aaa'\r\n                    }\r\n                },\r\n                lineStyle: {\r\n                    normal: {\r\n                        curveness: 0.5\r\n                    }\r\n                }\r\n            }\r\n        ]\r\n    }\r\n\r\n```\r\n\r\n\r\n\r\n\r\n### Other comments [其他信息]\r\n<!-- For example: Screenshot or Online demo -->\r\n<!-- [例如，截图或线上实例 (JSFiddle/JSBin/Codepen)] -->\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/incubator-echarts/issues/comments/444321150","html_url":"https://github.com/apache/incubator-echarts/issues/6365#issuecomment-444321150","issue_url":"https://api.github.com/repos/apache/incubator-echarts/issues/6365","id":444321150,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDMyMTE1MA==","user":{"login":"cttin","id":19873549,"node_id":"MDQ6VXNlcjE5ODczNTQ5","avatar_url":"https://avatars0.githubusercontent.com/u/19873549?v=4","gravatar_id":"","url":"https://api.github.com/users/cttin","html_url":"https://github.com/cttin","followers_url":"https://api.github.com/users/cttin/followers","following_url":"https://api.github.com/users/cttin/following{/other_user}","gists_url":"https://api.github.com/users/cttin/gists{/gist_id}","starred_url":"https://api.github.com/users/cttin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cttin/subscriptions","organizations_url":"https://api.github.com/users/cttin/orgs","repos_url":"https://api.github.com/users/cttin/repos","events_url":"https://api.github.com/users/cttin/events{/privacy}","received_events_url":"https://api.github.com/users/cttin/received_events","type":"User","site_admin":false},"created_at":"2018-12-05T01:16:28Z","updated_at":"2018-12-05T01:16:28Z","author_association":"NONE","body":"@deqingli 你好想问下这个需要设置什么么。为什么我升级到最新版本它还是每个路径的最后一个都显示在最后一个层级上。"}}
{"actor":{"display_login":"cttin"}}