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 2021/03/14 02:36:49 UTC

[GitHub] [echarts] datageartech opened a new issue #14463: 关系图graph在使用geo坐标系统时报错:Cannot read property 'off' of undefined

datageartech opened a new issue #14463:
URL: https://github.com/apache/echarts/issues/14463


   ### Version
   5.0.2
   
   ### Steps to reproduce
   1. 打开ECharts官网示例
   
   https://echarts.apache.org/examples/zh/editor.html?c=map-HK
   
   2. 将示例代码中的
   
   ```
   myChart.setOption(option = {
   ...
   });
   ```
   
   改为:
   
   ```
   myChart.setOption(option = {
       "title": {"text": "关系地图"},
   	"tooltip": {"trigger": "item"},
   	"geo": {"roam": true,"map": "HK"},
   	"legend": {"data": ["C1","C2","C0"]},
   	"series": 
   	[
   		{
   			"name": "关系地图",
   			"type": "graph",
   			"layout": 'none',
   			"coordinateSystem": "geo",
   			"data":
   			[
   				{"name": "a","x": 114.14,"y": 22.28,"category": 0,"value": 80,"symbolSize": 16},
   				{"name": "b","x": 114.18,"y": 22.30,"category": 0,"value": 140,"symbolSize": 30},
   				{"name": "c","x": 114.18,"y": 22.25,"category": 1,"value": 70,"symbolSize": 14},
   				{"name": "d","x": 114.23,"y": 22.18,"category": 2,"value": 5,"symbolSize": 6},
   				{"name": "e","x": 114.25,"y": 22.35,"category": 2,"value": 55,"symbolSize": 11}
   			],
   			"links":
   			[
   				{"source": 0,"target": 1},
   				{"source": 1,"target": 2},
   				{"source": 1,"target": 3},
   				{"source": 1,"target": 4}
   			],
   			"legendHoverLink": true,
   			"label": {"position": "right"},
   			"emphasis": {"focus": "adjacency"},
   			"categories": [{"name": "C1"},{"name": "C2"},{"name": "C0"}],
               "lineStyle":
               {
                   "color": 'source',
                   "curveness": 0.3
               }
   		}
   	  ]
       });
   ```
   
   3. 点击【运行】按钮
   
   ### What is expected?
   在地图中显示关系图
   
   ### What is actually happening?
   没有显示效果,打开浏览器控制台报错:
   ```
   echarts.min.js:45 Uncaught TypeError: Cannot read property 'off' of undefined
       at echarts.min.js:45
       at t.eachNode (echarts.min.js:45)
       at e.render (echarts.min.js:45)
       at t.progress (echarts.min.js:45)
       at t._doProgress (echarts.min.js:45)
       at t.perform (echarts.min.js:45)
       at echarts.min.js:45
       at e.<anonymous> (echarts.min.js:45)
       at Array.forEach (<anonymous>)
       at P (echarts.min.js:35)
   ```
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


----------------------------------------------------------------
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] [echarts] Etering commented on issue #14463: 关系图graph在使用geo坐标系统时报错:Cannot read property 'off' of undefined

Posted by GitBox <gi...@apache.org>.
Etering commented on issue #14463:
URL: https://github.com/apache/echarts/issues/14463#issuecomment-810055966


   同问


-- 
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] [echarts] echarts-bot[bot] commented on issue #14463: 关系图graph在使用geo坐标系统时报错:Cannot read property 'off' of undefined

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






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