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
directivethat will transport the data betweenangularandvis. Every characteristic ofviscan be mimified onangular, integratingvisto its$digestcycle.Directives are to deal with
DOM manipulationand integration with third party plugins likevis.For example, if you want to get something updated when
vistells something, you can achieve like the below (supposing thatvis.event()is a real method fromvisAPI):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-networkelement, theeventsone, 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!