You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the GanttComponent in my project, and I'm experiencing performance issues when loading a dataset of around 200 rows. The initial load takes approximately 15 seconds, which seems excessive.
I've reviewed the documentation and know about enableVirtualization, but I'm looking for additional ways to optimize the performance.
Implementation Details
I’ve customized the headers and rows using templates (code below).
My dataset is provided through ref.current.dataSource.
There are 12 columns in total (only one is shown in the example).
The component includes custom tooltips and various style customizations.
For your query, we prepared a sample with 210 records, enabling both virtualization and timeline virtualization. We also applied column templates, taskbar templates, and header templates. During testing, the initial load time remained within 1 second, with no noticeable delays. (refer sample)
Query 1 - Are there any best practices for improving the initial load performance of the GanttComponent?
Query 3 - Are there specific settings or configurations in the GanttComponent that I might be overlooking?
Enable Virtual Scrolling
Virtual scrolling helps in rendering only the visible rows rather than loading all tasks at once.
If you don’t need certain features, disable them: "Sorting, Resizing, ColumnMenu etc."
Avoiding calculation times:
Minimize the rendering of predecessor links if there are too many: by using enablePredecessorValidation property. To disable entire date calculation use autoCalculateDateScheduling property.
Code-Snippet:
`enablePredecessorValidation: false, // remove the predecessor calculation.
autoCalculateDateScheduling: false, // avoid entire date calculation and render the records as per the dates given in the datasource.`
Reduce Timeline Units
Use a broader timeline view (week/month instead of day/hour):
Code-Snippet:
`timelineSettings: {
timelineViewMode: 'Month', // Use ‘Month’ instead of ‘Day’ updateTimescaleView: true
Query 2 - Could the custom templates (header and row) impact performance, and is there a more efficient way to handle them?
Yes, applying templates to multiple columns may impact performance. To optimize it, consider using templates only for essential columns and removing unnecessary ones.
To know more about the best practices to improve the performance, refer below documentation:
Hi,
I'm using the
GanttComponent
in my project, and I'm experiencing performance issues when loading a dataset of around 200 rows. The initial load takes approximately 15 seconds, which seems excessive.I've reviewed the documentation and know about
enableVirtualization
, but I'm looking for additional ways to optimize the performance.Implementation Details
ref.current.dataSource
.Here’s a simplified version of my code:
Questions
GanttComponent
?GanttComponent
that I might be overlooking?Any advice or suggestions from the contributors or community would be greatly appreciated!
Thank you for your time and help.
The text was updated successfully, but these errors were encountered: