Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

edgaraafelix/angular-visgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

angular-visgraph

AngularJS directive to draw vis.js graph.

Copyright (C) 2013, edgaraafelix.

Usage

Include both vis.js and angular.visgraph.js in your application.

<script src="//visjs.org/dist/vis.js"></script>
<script src="angular.visgraph-0.0.1.js"></script>

Add the module angular.visgraph as a dependency to your app module:

var app = angular.module('app.visgraph', ['angular.visgraph']);

You can now start using the vis-graph directive to draw a graph. For example:

<div id="graph" vis-graph style="width: 100%; height: 600px"></div>

You can also pass vis.js graph data and options for example:

<div id="graph" vis-graph data="graph.data" options="graph.options" event="select" callback="callbackFunction(params)" style="width: 100%; height: 600px"></div>

Possible configuration options are described in the vis.js documentation.

License

Released under the terms of MIT License.

About

AngularJS directive to draw vis.js graph

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published