title: Need help in creating network graph using visjs in angularjs
body: <p>I need help in making <a href="http://plnkr.co/edit/0LQidVPnOSLhyydsoTwD?p=preview" rel="nofollow">this plunker</a> work something similar to <a href="http://visjs.org/examples/network/exampleApplications/nodeLegend.html" rel="nofollow">this vis example</a> in angularjs. </p>
  
  <p>I am using <code>&lt;vis-network data="data" options="options"&gt;&lt;/vis-network&gt;</code> tag and below data and options</p>
  
  <p>data</p>
  
  <pre><code>var nodes = [
    {id: 1, label: 'Node 1'},
    {id: 2, label: 'Node 2'},
    {id: 3, label: 'Node 3'},
    {id: 4, label: 'Node 4'},
    {id: 5, label: 'Node 5'}
  ];
  var edges = [
    {from: 1, to: 3},
    {from: 1, to: 2},
    {from: 2, to: 4},
    {from: 2, to: 5}
  ];
  $scope.data = VisDataSet({
    nodes: nodes,
    edges: edges
  });
  </code></pre>
  
  <p>options</p>
  
  <pre><code>$scope.options = {
    autoResize: true,
    height: '100%',
    width: '100%'
  };
  </code></pre>
  
  <p>There is no console error, what am I missing. Please help.</p>