# Static Approach

We can display the Reference line and Reference Range with Static Approach using the Reference tab which is located in Advance Editor.

### Setting up using configurations:

1. Go to the **Advanced Editor**&#x20;

<figure><img src="/files/px2Wl2onwN1wyWjSJ5Cr" alt=""><figcaption><p><em>Image 1: Advance Editor Icon</em></p></figcaption></figure>

2. Navigate to the "Reference" Tab

<img src="/files/rFLx1tOeWjgGdl1SSZJv" alt="Image 2: Advance Editor-References Tab in the xViz Gantt Chart" width="563">

#### **a. For Reference lines**&#x20;

The xViz Gantt provides users the option to set multiple reference lines based on different logic:

2. **Date configuration**

We need to configure one single date to add the Reference Line on the Chart:

* **First-of-date –** Displays Reference Line on the earliest start date from the data where the Timeline starts.

<figure><img src="/files/hO4HwCRHgBznPqTJktlH" alt="" width="563"><figcaption><p><em>Image 3: Reference Line option First-of-date in the xViz Gantt Chart</em></p></figcaption></figure>

* **Last-of-date-** Displays Reference Line on the latest start date from the data, where the Timeline ends.

<figure><img src="/files/Smon6swxvU7mwFFc4BWO" alt="" width="563"><figcaption><p><em>Image 4: Reference Line option Last-of-date in the xViz Gantt Chart</em></p></figcaption></figure>

* **Today-** Displays Reference Line on the present day dynamically.

<figure><img src="/files/Se94QqWbUED0pbGcEyzR" alt="" width="563"><figcaption><p><em>Image 5: Reference Line option Today in the xViz Gantt Chart</em></p></figcaption></figure>

* **Custom Date-** Displays Reference Line for the static date provided in the configuration

<figure><img src="/files/t8wXIWvJECf0yDfU8c3i" alt="" width="563"><figcaption><p><em>Image 6: Reference Line option Custom Date in the xViz Gantt Chart</em></p></figcaption></figure>

3. &#x20;**Formatting options for Reference Lines:**

<img src="/files/uoVsAEoxKnpxRRvz2iXr" alt="Image 7: Reference Line Formatting options in the xViz Gantt Chart" width="302">

* **Reference Color** - Choose from color palette and set the color as per needs.
* **Display Line Type and Stroke** - Apply Line type formatting from the options below:

1. Dotted
2. Dashed
3. Solid
4. Dashed-Dotted

Adjust the **Width** of the Line type using **Stroke** Option.

* **Text- Font Weight, Position and Background**-Format the text using Font size, Position, and background color options.

#### **b. Reference Band**

Use the reference range, **Custom Date Range** option to highlight a specific range on your Timeline.

2. **Date configuration**

We need to configure Custom Date from and Date to dates to highlight the specific Range in the Chart.

<figure><img src="/files/0LwViuZy6uxddaNfCsK4" alt="" width="563"><figcaption><p><em>Image 8: Reference Band in the xViz Gantt Chart</em></p></figcaption></figure>

For the date range as well, the from and to dates can be set using the different date options shown in Reference Line section.&#x20;

3. **Formatting options for Reference Band:**

* **Band Pattern and Color:** Choose from various Patterns provided as per needs and set the color using color palette.

<figure><img src="/files/ySky3SVXLESDoFWDgqUY" alt=""><figcaption><p><em>Image 9: Formatting options for Reference Band</em></p></figcaption></figure>

* **Text- Font Weight, Position and Background**-Format the text using Font size, Position, and background color options.

{% hint style="info" %}
We can also display the Reference line and Reference Range using the Data Fields of Reference Start Date and Reference End Date - [Data Driven Approach](/project-management/reference-lines-and-reference-range/data-driven-approach.md)
{% endhint %}


---

# 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/reference-lines-and-reference-range/static-approach.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.
