Boosting Performance of Blazor Gantt Chart Using Virtualization
Detailed Blog page Skeleton loader
Boosting Performance of Blazor Gantt Chart Using Virtualization

The Syncfusion Blazor Gantt Chart is a project planning and management tool. Its rich feature set helps us display and manage hierarchical tasks with timeline details.

Though many of the component’s features are necessary for the convenience of users, the performance of the component also plays a vital role, especially while handling a huge volume of data with a longer timeline data source.

So, to effectively handle a huge data set, we have provided virtualization support in our Blazor Gantt Chart to load DOM (Document Object Model) elements on demand. This will enhance the performance of the browser engine while rendering our Gantt Chart component.

In this blog, we’ll see the various virtualization features available in our Blazor Gantt Chart component and how they help in boosting performance.

Virtualization in Blazor Gantt Chart

As I said before, virtualization renders only the DOM elements required in the current viewport. After that, it will dynamically render the subsequent elements during horizontal and vertical scrolling on demand.

You can enable virtualization for both horizontal and vertical scrolling in the grid and chart areas of the Gantt Chart.

The virtualization types supported in the Blazor Gantt Chart component are:

Let’s see them in action!

Row virtualization

With the help of row virtualization, we can effectively bind and visualize a huge data set with thousands of records. Initially, it will only render the current viewport rows in the DOM for the grid and chart areas. On vertical scrolling, it will render further rows on demand, thus enhancing the performance of the Blazor Gantt Chart.

Refer to the following GIF image.

Row Virtualization in Blazor Gantt Chart
Row Virtualization in Blazor Gantt Chart

Column virtualization

Consider a scenario where we need to bind a data source with many column fields in each data object. In that case, not only does the number of records in the data source affect the performance, but the number of fields or columns in each data source also affects the performance because it increases the number of cell elements being rendered in the DOM.

So, in this case, we can enable column virtualization in the Blazor Gantt Chart. It will render only the current viewport grid cells in the DOM and render the remaining cells on demand while scrolling horizontally. In this way, it enhances the performance of the Blazor Gantt Chart.

Refer to the following GIF image.

Column Virtualization in Blazor Gantt Chart
Column Virtualization in Blazor Gantt Chart

Timeline virtualization

Like column virtualization in the grid area, we can enable timeline virtualization in the chart area of the Blazor Gantt Chart to schedule tasks with longer periods.

For tasks with longer periods, a greater number of cells needs to be rendered in the timeline, which may result in performance deterioration. Timeline virtualization reduces this cell rendering burden by loading the timeline cells required for the current viewport alone. All other cells will be rendered on demand while scrolling horizontally.

Refer to the following GIF image.

Timeline Virtualization in Blazor Gantt Chart
Timeline Virtualization in Blazor Gantt Chart

Performance metrics

Let’s compare the performance metrics for rendering 10,000 records with and without virtualization enabled in the Blazor Gantt Chart.

Without Virtualization (Normal Scrolling) With Virtualization (Row, Column, and Timeline)
4 minutes 52 seconds10 seconds

From the above table data, it is evident that with virtualization, the performance of the Blazor Gantt Chart can be drastically enhanced.

Reference

For more details, refer to the virtual scrolling in Blazor Gantt Chart demo and documentation.

Conclusion

Thanks for reading! In this blog, we have seen how virtualization helps in boosting performance by reducing the DOM elements in our Blazor Gantt Chart. Try out this marvelous feature and share your valuable feedback in the comments below.

You can also contact us through our support forumsupport portal, or feedback portal. We are always happy to assist you!

Related

Be the first to get updates

Alan Sangeeth

Meet the Author

Alan Sangeeth

Alan Sangeeth is Syncfusion's Product Manager and has been involved in web technology since 2013. Focusing currently on innovations in the web component to make project developers world easy.

Comments (1)

Dear Alan !
We are really, really looking forward to working with virtualization with the Gantt Chart !

Comments are closed.