You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/06/10 06:44:35 UTC

[GitHub] [incubator-echarts] babyvip229 opened a new issue #12787: Echarts Sankey 对数据一直提示Sankey is a DAG, the original data has cycle!请问这个如何解决

babyvip229 opened a new issue #12787:
URL: https://github.com/apache/incubator-echarts/issues/12787


   他一直提示数据“原始数据有周期”。请问这个原始数据有周期是什么原因呢?
   
   示例地址:https://gallery.echartsjs.com/editor.html?c=xr3LI5lPST&v=4
   
   示例代码:
   let json2 = [
   	{"name":"【企业微信功能测试组】"},
   	{"name":"业务团队"},
   	{"name":"职能总部"},
   	{"name":"产品中心"},
   	{"name":"线上业务体系"},
   	{"name":"AI出版中心"},
   	{"name":"业务总部"},
   	{"name":"研发中心"},
   	{"name":"【服务保障联合小组】"},
   	{"name":"东西北战区"},
   	{"name":"西南战区"},
   	{"name":"华北战区"},
   	{"name":"慧学空间事业部"},
   	{"name":"华南战区"},
   	{"name":"华东战区"},
   	{"name":"华中战区"},
   	{"name":"服务保障中心"}
   ]
   let json3 = [
   	{
   		"source":"【企业微信功能测试组】",
   		"target":"产品中心",
   		"value":74
   	},
   	{
   		"source":"【企业微信功能测试组】",
   		"target":"业务总部",
   		"value":339
   	},
   	{
   		"source":"【企业微信功能测试组】",
   		"target":"华北战区",
   		"value":171
   	},
   	{
   		"source":"【企业微信功能测试组】",
   		"target":"西南战区",
   		"value":26
   	},
   	{
   		"source":"业务团队",
   		"target":"职能总部",
   		"value":416
   	},
   	{
   		"source":"业务团队",
   		"target":"华南战区",
   		"value":28
   	},
   	{
   		"source":"业务团队",
   		"target":"业务总部",
   		"value":681
   	},
   	{
   		"source":"职能总部",
   		"target":"产品中心",
   		"value":74
   	},
   	{
   		"source":"职能总部",
   		"target":"【企业微信功能测试组】",
   		"value":268
   	},
   	{
   		"source":"产品中心",
   		"target":"研发中心",
   		"value":272
   	},
   	{
   		"source":"产品中心",
   		"target":"【服务保障联合小组】",
   		"value":25
   	},
   	{
   		"source":"产品中心",
   		"target":"AI出版中心",
   		"value":142
   	},
   	{
   		"source":"产品中心",
   		"target":"业务团队",
   		"value":114
   	},
   	{
   		"source":"线上业务体系",
   		"target":"【企业微信功能测试组】",
   		"value":653
   	},
   	{
   		"source":"线上业务体系",
   		"target":"AI出版中心",
   		"value":71
   	},
   	{
   		"source":"线上业务体系",
   		"target":"职能总部",
   		"value":399
   	},
   	{
   		"source":"线上业务体系",
   		"target":"业务团队",
   		"value":114
   	},
   	{
   		"source":"AI出版中心",
   		"target":"【企业微信功能测试组】",
   		"value":205
   	},
   	{
   		"source":"业务总部",
   		"target":"产品中心",
   		"value":74
   	},
   	{
   		"source":"业务总部",
   		"target":"职能总部",
   		"value":207
   	},
   	{
   		"source":"业务总部",
   		"target":"华南战区",
   		"value":28
   	},
   	{
   		"source":"研发中心",
   		"target":"职能总部",
   		"value":94
   	},
   	{
   		"source":"研发中心",
   		"target":"服务保障中心",
   		"value":13
   	},
   	{
   		"source":"东西北战区",
   		"target":"【企业微信功能测试组】",
   		"value":134
   	},
   	{
   		"source":"东西北战区",
   		"target":"产品中心",
   		"value":74
   	},
   	{
   		"source":"西南战区",
   		"target":"华北战区",
   		"value":57
   	},
   	{
   		"source":"华北战区",
   		"target":"业务总部",
   		"value":113
   	},
   	{
   		"source":"华北战区",
   		"target":"服务保障中心",
   		"value":39
   	},
   	{
   		"source":"华北战区",
   		"target":"东西北战区",
   		"value":200
   	},
   	{
   		"source":"慧学空间事业部",
   		"target":"职能总部",
   		"value":105
   	},
   	{
   		"source":"华南战区",
   		"target":"【企业微信功能测试组】",
   		"value":162
   	},
   	{
   		"source":"华南战区",
   		"target":"华北战区",
   		"value":57
   	},
   	{
   		"source":"华东战区",
   		"target":"【企业微信功能测试组】",
   		"value":268
   	},
   	{
   		"source":"华东战区",
   		"target":"业务总部",
   		"value":113
   	},
   	{
   		"source":"华东战区",
   		"target":"东西北战区",
   		"value":43
   	},
   	{
   		"source":"华东战区",
   		"target":"华北战区",
   		"value":114
   	},
   	{
   		"source":"华中战区",
   		"target":"【企业微信功能测试组】",
   		"value":268
   	},
   	{
   		"source":"华中战区",
   		"target":"业务总部",
   		"value":226
   	},
   	{
   		"source":"华中战区",
   		"target":"东西北战区",
   		"value":114
   	},
   	{
   		"source":"华中战区",
   		"target":"华北战区",
   		"value":114
   	},
   	{
   		"source":"华中战区",
   		"target":"华东战区",
   		"value":44
   	},
   	{
   		"source":"华中战区",
   		"target":"服务保障中心",
   		"value":13
   	}
   ]
   option  = {
       tooltip: {
           trigger: 'item',
           triggerOn: 'mousemove'
       },
       series: {
           type: 'sankey',
           layout:'none',
           focusNodeAdjacency: 'allEdges',
           itemStyle: {
               borderWidth: 1,
               borderColor: '#aaa'
           },
           lineStyle: {
               color: 'source',
               curveness: 0.5
           },
           data: json2,
           links: json3
       }
   }


----------------------------------------------------------------
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.

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] [incubator-echarts] echarts-bot[bot] closed issue #12787: Echarts Sankey 对数据一直提示Sankey is a DAG, the original data has cycle!请问这个如何解决

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] closed issue #12787:
URL: https://github.com/apache/incubator-echarts/issues/12787


   


----------------------------------------------------------------
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.

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] [incubator-echarts] dorasong commented on issue #12787: Echarts Sankey 对数据一直提示Sankey is a DAG, the original data has cycle!请问这个如何解决

Posted by GitBox <gi...@apache.org>.
dorasong commented on issue #12787:
URL: https://github.com/apache/incubator-echarts/issues/12787#issuecomment-749456506


   echarts桑基图不允许数据出现闭环
   
   
   | |
   songwen
   |
   |
   邮箱:sw_hero2008@126.com
   |
   
   Signature is customized by Netease Mail Master
   
   在2020年12月22日 17:55,songwen 写道:
   服务端返回的数据有回流,即一个数据作为出发源数据,又作为目的源数据,数据形成闭环,请自查。
   
   
   | |
   songwen
   |
   |
   邮箱:sw_hero2008@126.com
   |
   
   Signature is customized by Netease Mail Master
   
   在2020年12月22日 17:45,walkingzmz 写道:
   
   遇到同样问题,求解
   
   —
   You are receiving this because you commented.
   Reply to this email directly, view it on GitHub, or unsubscribe.


----------------------------------------------------------------
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.

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] [incubator-echarts] dorasong commented on issue #12787: Echarts Sankey 对数据一直提示Sankey is a DAG, the original data has cycle!请问这个如何解决

Posted by GitBox <gi...@apache.org>.
dorasong commented on issue #12787:
URL: https://github.com/apache/incubator-echarts/issues/12787#issuecomment-713393781


   遇到同样问题,求解


----------------------------------------------------------------
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.

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] [incubator-echarts] dorasong commented on issue #12787: Echarts Sankey 对数据一直提示Sankey is a DAG, the original data has cycle!请问这个如何解决

Posted by GitBox <gi...@apache.org>.
dorasong commented on issue #12787:
URL: https://github.com/apache/incubator-echarts/issues/12787#issuecomment-749455836


   服务端返回的数据有回流,即一个数据作为出发源数据,又作为目的源数据,数据形成闭环,请自查。
   
   
   | |
   songwen
   |
   |
   邮箱:sw_hero2008@126.com
   |
   
   Signature is customized by Netease Mail Master
   
   在2020年12月22日 17:45,walkingzmz 写道:
   
   遇到同样问题,求解
   
   —
   You are receiving this because you commented.
   Reply to this email directly, view it on GitHub, or unsubscribe.


----------------------------------------------------------------
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.

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] [incubator-echarts] echarts-bot[bot] commented on issue #12787: Echarts Sankey 对数据一直提示Sankey is a DAG, the original data has cycle!请问这个如何解决

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12787:
URL: https://github.com/apache/incubator-echarts/issues/12787#issuecomment-641764207


   This issue is not created using [issue template](https://ecomfe.github.io/echarts-issue-helper/) so I'm going to close it. 🙊
   Sorry for this, but it helps save our maintainers' time so that more developers get helped.
   Feel free to create another issue using the issue template.
   
   If you think you have already made your point clear without the template, or your problem cannot be covered by it, you may re-open this issue again.
   
   这个 issue 未使用 [issue 模板](https://ecomfe.github.io/echarts-issue-helper/?lang=zh-cn) 创建,所以我将关闭此 issue。
   为此带来的麻烦我深表歉意,但是请理解这是为了节约社区维护者的时间,以更高效地服务社区的开发者群体。
   如果您愿意,可以请使用 issue 模板重新创建 issue。
   
   如果你认为虽然没有使用模板,但你已经提供了复现问题的充分描述,或者你的问题无法使用模板表达,也可以重新 open 这个 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.

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] [incubator-echarts] walkingzmz commented on issue #12787: Echarts Sankey 对数据一直提示Sankey is a DAG, the original data has cycle!请问这个如何解决

Posted by GitBox <gi...@apache.org>.
walkingzmz commented on issue #12787:
URL: https://github.com/apache/incubator-echarts/issues/12787#issuecomment-749451489


   遇到同样问题,求解


----------------------------------------------------------------
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.

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] [incubator-echarts] walkingzmz removed a comment on issue #12787: Echarts Sankey 对数据一直提示Sankey is a DAG, the original data has cycle!请问这个如何解决

Posted by GitBox <gi...@apache.org>.
walkingzmz removed a comment on issue #12787:
URL: https://github.com/apache/incubator-echarts/issues/12787#issuecomment-749451489


   遇到同样问题,求解


----------------------------------------------------------------
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.

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