yanbowang1 opened a new issue #11006: 力导图,页面报 cannot read property 'off' of undefined invalid URL: https://github.com/apache/incubator-echarts/issues/11006 Version 3.5.4 Steps to reproduce 无 What is expected? Display the force map by the position of the initialization node 中文:按初始化节点的位置展示力导图 后端返回数据: request data: const datalist = [{fixed:true,"flag":0,name:"节点1",x:-809.0,y:432.0},{fixed:true,"flag":0,name:"节点2",x:-370.6757639934755,y:432.0},{fixed:true,"flag":0,name:"节点3",x:-809.0,y:-432.5},{fixed:true,"flag":0,name:"节点4",x:809.0,y:-432.5},{fixed:true,"flag":0,name:"节点5",x:370.695794022634,y:432.0},{fixed:true,"flag":0,name:"节点6",x:809.0,y:432.0}] const links = [{target:"节点2",source:"节点1"},{target:"节点3",source:"节点1"},{target:"节点3",source:"节点2"},{target:"节点4",source:"节点2"},{target:"节点5",source:"节点4"},{target:"节点6",source:"节点4"}] What is actually happening? 中文:浏览器报错 Browser error: webpack-internal:///130:235 uncaught at _callee TypeError: Cannot read property 'off' of undefined at eval (webpack-internal:///2118:156:10) at Graph.graphProto.eachEdge (webpack-internal:///2117:248:10) at ExtendedClass.render (webpack-internal:///2118:154:16) at ECharts.eval (webpack-internal:///1434:1218:15) at ExtendedClass.eval (webpack-internal:///2019:453:10) at Array.forEach () at each (webpack-internal:///1433:289:9) at ExtendedClass.eachSeries (webpack-internal:///2019:450:5) at ECharts.doRender (webpack-internal:///1434:1215:11) at ECharts.update (webpack-internal:///1434:680:14) This error occurs when I add the ‘fixed’ attribute of the data subkey. I remove the attribute and the error disappears, but the initialization x and y will change. 中文:这个错误出现是我添加data 子项的‘fixed’属性,去掉这个属性,报错消失,但是初始化x,y就会改变
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
