vis.js - how to place item in center of graph

China☆狼群 提交于 2019-12-11 20:28:27

问题


I have tree structure like next :

  • id: 1
    • id: 2
      • id: 8
      • id: 9
      • id: 10
      • id: 11
      • id: 12
    • id: 3
      • id: 13
    • id: 4
    • id: 5
    • id: 6
    • id: 7
    • id: 8

And need to show it (as network graph, not as tree) After page loading graph must be centered on {id:1} item.

How can I make it?

来源:https://stackoverflow.com/questions/32853591/vis-js-how-to-place-item-in-center-of-graph

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!