I need to implement a gantt chart and think mxGraph Gantt could be the ideal solution. The only problem is with the integration of it in the application.
Has anyone tried integrating and implementing it. If so , then please provide some directions/instructions on how to use it.
Here is Complete Solution:
Few details about different mxGraph Repos:
Steps:
Clone Repo-4. Also, add remote of the official repo(i.e. Repo-2) to take the latest mxGraph updates/release/fixes.
Change directory to the mxgraph2 and run npm install
$ cd mxgraph2
$ npm install
Now go to your angular project repo and install mxGraph(i.e. mxgraph2 which we have build locally).
$ npm install /path/to/mxgraph2
e.g.
npm install /home/user/workspace/mxgraph2
Which will add a similar entry as below in your package.json file:
"mxgraph": "file:../mxgraph2"
Run normal npm install once. For adding any missing/dependency package.
$ npm install
Now we will install mxgraph typings
Note - Minimum required version of the typescript is 2.4.0
$ npm install lgleim/mxgraph-typings --save
Now you can use mxGraph in your app.
i. component.ts
ii. component.html
<div id="graphContainer"></div>
That's it !!
Hope it will be helpful.