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


i have tree structure 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 show (as network graph, not tree) after page loading graph must centered on {id:1} item.

how can make it?


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -