angular-visgraph

AngularJS directive to draw vis.js graph

Added by: Sam Deering

GitHub

Repository

edgaraafelix/angular-visgraph

Stats

Stars: 8

Watchers: 8

Forks: 2

Author

Edgar Felix
Edgar Felix

Module Description

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.

Module stats last updated: 2015-06-07 05:58:13

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!