Skip to content

graph 加载数据,产生off未定义错误 #9422

@asdfhalkehflkajdhf

Description

@asdfhalkehflkajdhf

1、数据和错误信息可以查看以下两个链接。
这两个数据是使用程序跑出来,并不存在格式不对的问题。因为有的是可以显示

错误显示
https://www.xn--vusv75dba7g.cn/NLP/b/topicGraph.html

echarts.js:54307 Uncaught TypeError: Cannot read property 'off' of undefined at echarts.js:54307 at Graph.graphProto.eachEdge (echarts.js:52679) at ExtendedClass.render (echarts.js:54304) at Task.progress (echarts.js:24193) at doProgress (echarts.js:23115) at Task.taskProto.perform (echarts.js:23038) at echarts.js:27882 at ExtendedClass.<anonymous> (echarts.js:21073) at Array.forEach (<anonymous>) at each$1 (echarts.js:528)

正常显示
https://www.xn--vusv75dba7g.cn/NLP/a/topicGraph.html

2、在graph中我使用这个双击是不管用
chartObj.on('dblclick', function (params) {
console.log(params);
});

我试过4.1的多个版本,目前使用的echars版本是echarts-4.2.0-rc.2,
尝试去解决问题,但太深入了。

==================================================================

1, data and error messages can view the following two links.
These two data are running out of the program, and there is no problem of incorrect format. Because some can be displayed.

    • error shows * *
      Https://www.xn--vusv75dba7g.cn/NLP/b/topicGraph.html
      `echarts.js:54307 Uncaught TypeError: Cannot read property'off'of undefined
      At echarts.js:54307
      At Graph.graphProto.eachEdge (echarts.js:52679)
      At ExtendedClass.render (echarts.js:54304)
      At Task.progress (echarts.js:24193)
      At doProgress (echarts.js:23115)
      At Task.taskProto.perform (echarts.js:23038)
      At echarts.js:27882
      At ExtendedClass. (echarts.js:21073)
      At Array.forEach ()
      At each$1 (echarts.js:528) '
    • normal display * *
      Https://www.xn--vusv75dba7g.cn/NLP/a/topicGraph.html
      2, in graph, I use this double click is useless.
      ChartObj.on ('dblclick', function (params) {
      Console.log (params);
      });
      I tried more than 4.1 versions, and the echars version I use now is echarts-4.2.0-rc.2.
      Trying to solve the problem, but too deep.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pendingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions