# Resource Gantt

In xViz Gantt Visualization, switch to Gantt Resource mode for a view tailored for resource planning and allocation.

![Image 1: Gantt Resource Mode in xViz Gantt Chart](/files/tQSbpg29mkWqhuWLEly1)

The Gantt Resource Chart can also show the timeline of projects with multiple phases.

Consider having the following data of Task for projects, each with five stages and the start and end time execution in various phases.

![Image 2: Sample data for task and phase](/files/QmOXHolehVmZKIR6QTL1)

Below is an example of the Gantt resource displaying the task and its phases. The below view gives a clear representation of the start-to-end execution time of all the tasks between multiple phases. The timeline bars have been color-coded by the phases.

![Image 3: Gantt Resource Mode in xViz Gantt Chart](/files/tQSbpg29mkWqhuWLEly1)

The above view gives a clear representation of the start-to-end execution time of all the tasks between multiple phases. The timeline bars have been color-coded by the phases.

**Steps to configure:**

1. Data fields set up:

Insert the following columns in the **‘Task Name’** data field:

Category defining the rows – in this case, ‘**Task**.’

Category defining the phases in the timeline – in this case, ‘**phase**.’

<figure><img src="/files/qBXPkvqcrSdaVUj7jDRU" alt="" width="309"><figcaption><p><em>Image 4: Data Field to configure Task Name</em></p></figcaption></figure>

2\. Configuration:

To plot the timeline bars related to one task in one line:

Go to the **Format Pane** -> **Chart Type** -> **GanttResource.**

![Image 5: Gantt Resource Chart Type option](/files/4pee7kPPYoU2bA0QPOol)

3\. Formatting:

**Color coding of the timeline bars:**

Use the **Conditional** **formatting** feature from the **Advanced Editor**:

![Image 6: Conditional Formatting - Advanced Editor](/files/zagBEbix60DAk1TjWxcx)

And define different rules for color-coding the timeline bars. You can set conditions for different chart elements like **Progress**, **Milestone**, **Timeline Bar** etc.

![Image 7: Conditional Formatting - Chart elements](/files/cXvAayqpEC4AT6OAohWp)

You can set conditions for different chart elements like **Progress**, **Milestone**, **Timeline Bar** etc. In the above example, phases of the same Task have been given the same color. You may choose to color code the bars based on Phases, instead of Tasks.

{% hint style="info" %}
Conditional Formatting feature requires inserting minimum **one numeric data** in the visual.
{% endhint %}

To enable Conditional Formatting, can insert the measures/numeric data in the **Display** **Measure** Data Field. Further, you can disable the Measure from showing in the visual using Formatting Pane.

![Image 8: Insert numeric data](/files/UPGoVccpZ3fU0GDDqCHO)

![Image 9: Data Fields to configure Display Measures](/files/eB4ooVLlIczaDC8flbEV)

By using the toggle off/On options, we can disable the measure displaying from the visual using Formatting Pane.

To learn more about the Resource Gantt, check out our detailed blog:

{% embed url="<https://xviz.com/blogs/managing-projects-with-multiple-phases-in-power-bi-using-gantt-chart/>" %}

***

Try the [xViz Gantt Chart](https://xviz.com/visuals/gantt-chart/) (Microsoft certified) for Power BI from Microsoft AppSource [here.](https://appsource.microsoft.com/en-sg/product/power-bi-visuals/WA200000891?tab=Overview)&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.xviz.com/project-management/resource-gantt.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
