startDate and endDate on Gantt Chart changing when viewPreset or zoomLevel changes.
For the zoom in and zoom out I have written the below but its taking so much time to reflect the change in the Gantt chart. Is there any other way to do it better.
It has to really. Otherwise the timeline might end up tiny (if you zoom right out to a years-based ViewPreset), or might end up enormous if you zoom right in to the ViewPreset with the most granular view.