In visjs doc there is a stabilizationProgress
event which I need to enable in my angularjs project. I have created a plunker demo for the same.
I tried something like below, but not sure how to add a progress bar using angularjs. Here is a link to give an idea
<vis-network data="data" options="options" events="events"></vis-network>
Controller code
$scope.events = [{
stabilizationProgress: function (obj) {
},
stabilizationIterationsDone: function () {
}
}];
Enable a
directive
that will transport the data betweenangular
andvis
. Every characteristic ofvis
can be mimified onangular
, integratingvis
to its$digest
cycle.Directives are to deal with
DOM manipulation
and integration with third party plugins likevis
.For example, if you want to get something updated when
vis
tells something, you can achieve like the below (supposing thatvis.event()
is a real method fromvis
API):On your controller, you can listen to this event:
Edit 1:
I've read a bit of the Plunkr that you pointed out:
http://plnkr.co/edit/XlRkfazfYBmj0GM1PTeC?p=info
The events system is already there, you were missing the attribute on the
vis-network
element, theevents
one, with the events wanted binded to it.I suggest to you to comment out some of them and uncomment one each time to see it working. At the moment, they are all active and logging on console!