How to create network graph or hierarchical tree using visjs in angularjs?

后端 未结 1 1819
北海茫月
北海茫月 2021-01-28 23:04

I need some help in creating a network graph using visjs in angularjs. I am working on this plunker to achieve something like this

I followed the steps mentioned in Angu

1条回答
  •  清歌不尽
    2021-01-28 23:22

    I saw a few issues. First, you were including your css files as scripts instead of as stylesheets. So use this:

    
    
    

    Second if you take a look at angular-vis.js, you'll see that the directive should actually be vis-timeline. So I just changed it to this in the html:

    
    

    I removed the events attribute because that wasn't defined on your scope, but I assume you can look at the visjs documentation to see what should go there.

    See the revised plunker for the whole fix.

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