Set Zoom Level in Vis.js

后端 未结 1 850
谎友^
谎友^ 2021-02-15 11:51

I have a network that I\'m building with vis.js, but it is too large width-wise to fit in the pages\' container. The network runs left to right and contains steps about a specif

1条回答
  •  青春惊慌失措
    2021-02-15 12:23

    You can use functions like fit, focus, and moveTo change the zoom level.

    Example: http://visjs.org/examples/network/other/animationShowcase.html

    Docs: http://visjs.org/docs/network/

    0 讨论(0)
提交回复
热议问题