【问题标题】:ZoomCharts NetChart: Multiple links with the same ID will be merged warning messageZoomCharts NetChart:具有相同 ID 的多个链接将被合并警告消息
【发布时间】:2019-08-20 10:51:07
【问题描述】:

我正在处理一些用户信息以在网络图中表示数据。并且数据节点/链接正在动态加载。

当加载子节点数据时,子节点链接信息正在替换父节点链接信息。这给了我一个问题。

现在我正在尝试找到一种方法,为什么如果任何两个节点链接已经加载,那么该链接不应该被新链接覆盖。这意味着新链接将被删除。

我附上了加载数据时收到的消息的屏幕截图。

我在 ZoomChart 文档和谷歌上搜索了这个。但我没有找到任何解决方案。

【问题讨论】:

    标签: javascript zoomcharts netchart


    【解决方案1】:

    链接应该具有相同的数据,无论触发加载的是子链接还是父链接。如果链接内容根据方向不同,那么听起来您应该有两个链接,例如:

    {id: "child-parent", from: "child", to: "parent", extra: {someProperty: 1}},
    {id: "parent-child", from: "parent", to: "child", extra: {someProperty: 2}}
    

    你不应该有以下:

    {id: "parent-child", from: "child", to: "parent", extra: {someProperty: 1}},
    {id: "parent-child", from: "parent", to: "child", extra: {someProperty: 2}}
    

    因为这样会让人无法理解应该如何处理链接。

    此外,如有必要,请使用multiLinkProcessor 组合多个链接。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-08
      • 1970-01-01
      • 2020-07-28
      • 1970-01-01
      • 2021-12-04
      • 2018-11-05
      • 1970-01-01
      相关资源
      最近更新 更多