Closed handyhollis closed 4 years ago
try to call this.editor.setOptions(this.editorOptions);
after the data and options
is this feature working on vanilla js gannt?
Ok, thank you. Will try it as soon as I get back to the office. I believe it's vanilla jsganttimproved
Thank you very much. It works perfectly. Wish I'd asked 6 hours earlier :-)
If i set the data and options inside ngOnInit, everything works fine. If i call a webservice and populate the data in a subscribe, the data updates the chart but the scrollto has no effect. I have explicitly set the data in the subscribe to make sure its not a data issue.
this.projectsObservable = this.projectService.getProjectPlans(0);
this.projectsObservable.subscribe(projects => { this.data = [{example data goes here}]
} Im guessing the scroll has already run before teh data has loaded. Is there anyway to force the scroll to run again after the data has loaded?