The Gantt Chart web part is a modern Gantt chart with interactive features. Currently there are two types of Gantt Chart, the Project Gantt and the Project Task Hierarchy Gantt.
Note: For the best Gantt experience we recommend using a modern browser. You will experience fewer features and may experience unexpected behaviors using Internet Explorer, especially with larger numbers of items.
The Gantt Chart web part supports the following:
Note:
Search results will include values from columns that are hidden behind the Gantt's chart section, e.g., the Predecessors column.
Search results will include icon choice values such as those related to status and priority.
Do not include column value formatting such as '$' or '%' in search terms, and dates should be searched using the same format as this example: Mar 22 2023.
Yes/No columns are not supported.
Note: Sorting by icons is not recommended as it may not work as expected.
Project Task Hierarchy reporting in the Gantt Chart web part also supports the following:
Note: Predecessor links are not displayed if the Predecessor is a Summary Task.
It is possible to modify Tasks in a Gantt Chart if the Enable Editing option is set on the Gantt Settings page.
The Gantt Chart web part supports the following:
Note: A milestone task that has a duration greater than zero will automatically include lag and will not display as part of the critical path.
Note: The Calculate Schedule action will not be displayed if the Task Scheduler is not activated.
To configure:
Note: Having more than one Gantt Chart web part on a page is not recommended. Having two Gantt Chart web parts side-by-side on a page is not supported.
The Gantt Chart web part supports the following Data Sources:
Project Cache
The Project Cache
is designed primarily to speed up the loading of cross-site project reports that report across multiple sites.
By default the Project Cache All items filter is chosen, but you can filter the project items displayed by any of the three out-of-the-box views:
All Projects, Open Projects and My Projects or by using CAML.
This option appears in data sources if the Project Cache is activated, (which it is by default out-of-the-box).
The Gantt Scope can be set to report on Current Site only, or the Current Site and all its sub-sites. When in a Portfolio reporting site the only option will be Current Site.
Project Tasks
By default all items in Project Tasks lists are shown, but you can filter the project task items displayed by using one of the included views, or with CAML. The default sorting
order is based on the sort setting of the active view or CAML filter; if no sort setting is specified, the sort order will be by task order number.
Filter
There are three options:
All items
This includes all items from the selected list or library.
Items in this view
This uses the filtering from the selected view in the selected list or library. If there is no filtering specified in the selected view all items are included.
Specify filter (CAML)
This allows you to write your own CAML filter and insert the code.
Enter a title for the web part.
Chrome types available are: Default, Border Only, None, Title and Border, and Title Only.
You can set the height of the Gantt Chart by inputting a pixel value. The default height is 450 pixels. You cannot set the height below 300 pixels.
Tip: The height should not be set to more than the typical screen size. This can cause the column heading to scroll off the top page.
Show Today Line: You can choose to display a Today Line in the Gantt Chart. The Gantt Chart will automatically zoom to fit the Today Line data in the display area.
If the Data Source is a Project Tasks list, then options to edit the tasks will be available. If Task Scheduling is enabled in the select Project Tasks list, then further options are available. The settings available are:
Note: Calculate Schedule runs immediately after updating the Task.
The list could have workflows which are also triggered to run at the same time that also update the Task.
If this happens, an error will appear warning of a Save Conflict.
As a workaround you can either, modify your workflow or, turn off 'Calculate Schedule after dragging/dropping any Task date'.
Selecting the Enable Editing option for Project Task lists disables the Gantt Columns section.
Otherwise, select the columns to be represented in the Gantt Chart timeline:
To configure the columns displayed in the Gantt, select the columns to be included and the order in which you want them to appear.
For each column, you can also set custom properties:
The Project Task Hierarchy Gantt has the following additional Column Settings:
Note: If you delete an item from a Dialog you will be brought to the List the item was deleted from, and out of the current page.
This applies when configuring for the Project Cache data source only.
Select up to four sort columns and specify either Ascending or Descending sort order for each column. This sort setting will be used as the default each time the page is refreshed.
The columns within the Gantt can also be sorted by clicking on a column's heading. Ctrl-Click a column heading for multi-column sorting. This type of sort will only remain in place while the page is open. Refresh the Gantt to return to the default sort order.
This applies when configuring for the Project Cache data source only.
Configure the groupings as follows:
Select the columns to group by, up to a maximum of 4 groups.
Select the sort direction within the grouping; this can be either ascending or descending.
Select whether you want each group to be collapsed or expanded by default.
Note: The following column types cannot be used for grouping:
Person or Group columns that allow multiple selections can be used when grouping, so long as only one multi-value Person or Group column is used.
When using the Gantt Chart you may see the following issues.
Issue
Gantt Chart rows go out of alignment with the data rows, or predecessor links go out of alignment with the task bars.
Root Cause
This can be caused by a combination of browser zoom factor and screen resolution.
For example, zooming to 90% in a browser on a lower resolution laptop screen.
Resolution
Reset the zoom factor to 100% (Ctrl-0).
Issue
An error appears after updating a Task as follows:
Error updating Task : task_name when calculating schedule.
Exception : Save Conflict. Your changes conflict with those made concurrently by another user.
If you want your changes to be applied, click Back in your Web browser, refresh the page, and resubmit your changes.
Root Cause
It is likely that the 'Calculate Schedule after dragging/dropping any Task date' setting is turn on, and a workflow is also enabled that updates Tasks.
Resolution
Either modify your workflow or turn off 'Calculate Schedule after dragging/dropping any Task date'.