VIS network diagram in Angular4 - Urgent

108 views
Skip to first unread message

Jayant Nag D

unread,
Jul 14, 2018, 8:45:46 AM7/14/18
to Angular and AngularJS discussion
Hello Everyone,

I came across the below plunker link where Vis.js is being used  to create network diagram. I currently have a requirement to create similar one on Angular 4 and request your help to know how I can make it happen.


Also came across another component called "NGX-Graph".

Requirement is similar to the plunker given above, so any guidance on how I can get the same on Angular4 would be of great help. 

Thanking you

Jayanth Nag D

Jayant Nag D

unread,
Jul 17, 2018, 1:59:33 AM7/17/18
to Angular and AngularJS discussion
So there is no one who can give out a solution? I thought this group usually helps out immediately and has experts on every use case.

Sander Elias

unread,
Jul 17, 2018, 3:40:11 AM7/17/18
to Angular and AngularJS discussion
Hi Jayant,

Well, the experts in here, do help in their spare time and don't want to be rushed. Most of us feel that if something is that 'urgent' you should turn to someone and pay them to provide you with a working solution.

Also, you don't really need anything special in Angular, as it works perfectly well with all kind of 3rth party libs. Just create a component, and add the code. 
In this stckblitz I ported the basic usage sample. Probably something you could have done yourself. It's basically just 1 additional line to the original sample.

Regards
Sander

Jayant Nag D

unread,
Jul 17, 2018, 6:33:18 AM7/17/18
to Angular and AngularJS discussion
Hello Sander,

Thank you very much for sharing the solution, I am sorry to have pushed for an answer but your gesture is highly appreciated.

I had tried the same before but ended up getting errors. Now tried your way but still I am getting the below single error
"vis-graph.component.ts (10,30): Type 'ElementRef' is not generic."

Any help on this one please/

Thanking you

Jayanth Nag

Jayanth Nag D

unread,
Jul 19, 2018, 6:52:37 AM7/19/18
to Angular and AngularJS discussion
I was able to resolve it myself and the network graph has come out very well. 

Thank you Sander for the initial help, without that I could not have got the idea to solve the errors that was showing up.
Reply all
Reply to author
Forward
0 new messages