> For the complete documentation index, see [llms.txt](https://docs.xviz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xviz.com/project-management/alerting-techniques/conditional-formatting.md).

# Conditional Formatting

Conditional formatting is a technique where the color, font, text, and values of a data point are changed based on a data-driven condition. This technique can be used for performance metrics or to provide data-driven alerts.

Gantt Chart applies formatting based on certain criteria, such as completion percentage or project status, so users can easily track progress and identify potential issues. It allows users to customize the formatting rules and colors to better suit their individual needs.

<img src="/files/mREq1DMuLDz774HnK4yf" alt="Image 1: Conditional Formatting" width="203">

### [Steps to enable Conditional Formatting](/project-management/alerting-techniques/steps-to-enable-conditional-formatting.md)

Conditions can be set either by Rule or Color Scheme

### Method 1 - Process for Format By -> Rule

1. To apply the formatting select the **Condition**.

!\[Graphical user interface, text, application, chat or text message

Description automatically generated]\(/files/uTQs4p2JjKeY4RInRlsl) !\[Graphical user interface, text, application, chat or text message

Description automatically generated]\(/files/3fALnUVvazHINeOrwHGz) !\[Graphical user interface, text, application

Description automatically generated]\(/files/5U9nLbtJ6E082F0niJp3)

### Method 2 - Process for Format By -> Color Schemes

1. Different **Color Schemes** are used for formatting:

![Image 2: Format with color scheme](/files/8As1c1bEtEVDCK0h7gpA)

![Image 3: Number of ranges](/files/XsN8gl0A7DxH9fOG4AFT)

![Image 4: Color Blind Safe](/files/P2JqZ1MRNm6KazXQLZee)

![Image 6: Choose Color Scheme](/files/pA4sMwFdu6lqMU1Im5C0)

![Image 7: Select Range](/files/JXKaQhPkebCsoeZjdHUa)

### Legend Configuration

To display legends for the Status flag and Timeline bars of the applied rule, enable the "Show in Legend" option.

<figure><img src="/files/4a5z4GrsCTEOUu2CkbIt" alt="" width="335"><figcaption><p><em>Image 8: Show in Legend</em></p></figcaption></figure>
