Applies ToKlien Desktop Project Online Project Professional 2024 Project Standard 2024 Project Professional 2021 Project Standard 2021 Project Professional 2019 Project Standard 2019 Project Professional 2016 Project Standard 2016 Project for Office 365

Gantt bars look simple enough, but they can get confusing as projects get complex. Customizing the bars on a Gantt Chart view is often the first thing a project manager does to create clarity in a project and to help spot problem areas quickly.

Overview of formatting the Gantt Chart view

Gantt Chart views allow you see, at a glance, task information and columns and rows with corresponding bars along a timeline. You can customize the chart part of these views in Project to better suit your needs. For example, you can change how nonworking time is displayed, or you may want to format a Gantt Chart view to quickly identify specific tasks, or perhaps you want to add text to specific bars to help you identify them.

Keep in mind that any changes you make to one Gantt Chart view does not change the look of another Gantt Chart view.

What do you want to do?

Change the color, shape, or pattern of Gantt bars

To call attention to task bars on a Gantt Chart view, such as a milestone or summary task, you can change their color, shape, or pattern to separate them from other bars of a particular type.

  1. Apply a Gantt Chart view.

  2. Double-click anywhere in the chart portion of the Gantt Chart view (but not on individual bars) to display the Bar Styles window.

  3. In the Name column, select the type of Gantt bar (such as Task or Progress) that you want to format, and then select the Bars tab.

    If the Gantt bar type doesn't appear in the table, you can create a new Gantt bar for the task type you want.

  4. Under Start, Middle, and End, select the shapes, types or patterns, and colors for the bar.

    Some categories have only a start shape (such as milestone), while other categories have a start shape, middle bar, and end shape (such as summary tasks).

  5. Select OK to save your changes.

Tip: To highlight a single Gantt bar by changing its formatting, right-click on the bar and select a fill color.

Change the Gantt bars quickly using a style

You can easily apply a predefined style to all bars in a Gantt Chart view.

  1. Apply a Gantt Chart view. Select the Gantt Chart Format tab that appears above the ribbon. 

  2. Select a style in the Gantt Chart Style group.

    Gantt Chart styles group graphic

The style is instantly applied to all the bars in the view.

Create a new type of Gantt bar

If you want to spotlight a particular task category that is not represented by its own Gantt bar, you can create a new Gantt bar style. For example, you can create a type of Gantt bar to show available slack or to call attention to delayed tasks.

Tip: An asterisk (*) before the task name means that the bar style won't be displayed in the legend when you print the project using this view.

  1. Apply a Gantt Chart view.

  2. Double-click anywhere in the chart portion of the Gantt Chart view (but not on individual bars) to display the Bar Styles window.

  3. In the Gantt bar list, select the row below where you want to insert a new Gantt bar style, and then select Insert Row.

  4. In the Name column of the new row, type a name for the new bar style.

  5. In the Show For Tasks column of the new row, type or select the task type you want the bar to represent.

    If you want to exclude tasks with a specific bar type, type not before the task type. For example, you can define a bar type as not milestone to display only tasks that are not milestone tasks.

    If you want to display a Gantt bar for tasks of multiple types (such as tasks that are milestones and critical), type a comma (,) after the task category in the text entry box, and type or select a second task category in the Show For Tasks field.

  6. In the From and To columns, type or select the fields you want to use to position the start and finish points of the new Gantt bar.

    If you want to create a symbol that represents a single date, type or select the same field in the From and To columns.

  7. Select the Bars tab, and then under Start, Middle, and End, select shapes, patterns or types, and colors for the bar.

Tip: To save time, you can copy an existing Gantt bar style that has many of the attributes you want and paste it where you want it. To do this, in the Bar Styles dialog box, select the row you want to copy, and then select Cut Row. Select Paste Row to restore the cut row, select the row above where you want to insert the copied row, select Paste Row again, and then modify the copy.

Top of Page

Add text to Gantt bars

You can add specific project information, such as task names, resource names, completion percentages, and start dates, to bars on a Gantt Chart view.

In most cases, you will want to add text to certain types of Gantt bars.

  1. Apply a Gantt Chart view.

  2. Double-click anywhere in the chart portion of the Gantt Chart view (but not on individual bars) to display the Bar Styles window.

  3. In the table, select the type of Gantt bar (such as Task or Progress) that you want to add text to, and then select the Text tab.

  4. In the Left, Right, Top, Bottom, and Inside boxes, type or select the field that contains the data you want to display on the Gantt bar.

    If you want to add text that is unique to each task, type or select a custom text field, such as Text1, Text2, or Text3. Text that you enter into these fields from other views is automatically added to the Gantt bars.

You can also add text to a specific Gantt bar.

  1. Double-click a single bar within the chart portion of a Gantt Chart view, but not in the space between the bars.

  2. In the Format Bar dialog box, select the Bar Text tab.

  3. In the Left, Right, Top, Bottom, and Inside boxes, type or select the field that contains the data you want to display on the Gantt bar.

    If you want to add text that is unique to each task, type or select a custom text field, such as Text1, Text2, or Text3. Text that you enter into these fields from other views will be automatically added to the Gantt bars. You cannot add text individual text to Gantt bars without entering the text into custom text fields.

  • To change the format of dates on Gantt bars, select Layout on the Gantt Chart Format ribbon, and then select the date format you want in the Date format dropdown menu.

  • Select other bars to add project information to them, being careful to point to the bars and not to the space surrounding them. If more than one bar is displayed for each task, only the information for the topmost bar can be displayed by selecting Bar on the Bar Styles group.

Top of Page

Change the height of Gantt bars

To make the bars in the chart part of the Gantt Chart view easier to review, you may want to adjust the height of Gantt bars.

  1. Apply a Gantt Chart view. The Gantt Chart Format tab will appear above the ribbon.

  2. Select Layout.

    Format Group graphic

    Tip: You can also double-click within the chart portion of a Gantt Chart view, but not on individual bars.

  3. In the Bar height dropdown menu, select the point size you want.

Change the appearance of link lines between Gantt bars

When you link tasks, Project displays link lines on a Gantt Chart view that show the task dependencies of the linked tasks. You can change the way link lines appear or hide the link lines.

  1. Apply a Gantt Chart view. The Gantt Chart Format tab will appear above the ribbon.

  2. Select Layout.

    Format Group graphic

    Tip: You can also double-click the link line between tasks in the chart portion of a Gantt Chart view, but not on individual bars.

  3. Under Links, select the type of link line that you want to use. If you choose the first type of link, then the link lines will not appear.

Note: If you want to change the relationship between the tasks (such as changing a finish-to-start task dependency to a start-to-start task dependency) you need to change the task dependency type.

Top of Page

See Also

Show task names next to Gantt chart bars

Gantt chart templates

Perlu bantuan lainnya?

Ingin opsi lainnya?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.