songliuchen / echarts

解决echarts graph节点之间不能添加多边问题,节点自身边展示
Apache License 2.0
14 stars 4 forks source link

layout设置为none,coordinateSystem设置为cartesian2d时出错,请问要怎么解决 #1

Open wahahals opened 3 years ago

wahahals commented 3 years ago

image graphHelper.js中 getNodeGlobalScale方法 var coordSys = seriesModel.coordinateSystem; 取出来coordSys 为null,求一个解决方案,是哪里不对呢

wahahals commented 3 years ago

找到问题了,你的代码里面有个simpleLayoutEdge方法,应该是传入两个参数 image 但是echarts-en.js的58499行,echarts.js中的58499行,simpleLayout.js的54行,都只传入了一个参数 image