jsGanttImproved / ng-gantt

Gantt for Angular 8 based on jsgantt-improved
MIT License
61 stars 28 forks source link

How to redraw the chart on data change? #38

Closed vishal-shetty closed 3 years ago

vishal-shetty commented 3 years ago

When the data is updated, like from a modal popup then the chart is not redrawn. I saw there is a method g.draw() in the documentation for pure javascript but what method to call in angular to redraw the chart when the data has got updated from another component.

mariohmol commented 3 years ago

Hi, I did an example here redrawing.. check it out

https://stackblitz.com/edit/angular-ng-gantt?file=src%2Fapp%2Fapp.component.ts