# Data Driven Approach

We can also display the Reference line and Reference Range using the Data Fields of Reference Start Date and Reference End Date.

<img src="/files/XkaalXVfN8woK8X2M9P7" alt="Image 1: Data fields to configure References" width="198">

In the above example, ‘Planned Start’ measure is added in Reference Start Date and ‘Planned End’ measure is added in Reference End Date. ‘Task’ measure is added to Reference Text which will display the text on the Reference Line.

<img src="/files/Xb0BmgvbbPJZITP7UQ9S" alt="Image 2: Resultant output view of the Reference Line and Range" width="563">

From the above example, the Reference Line is displayed using dotted lines, the Range pattern is displayed using checkerboard and the text is displayed on the lines.

### **Steps to configure:**

1. Go to the Format Pane->References.

<figure><img src="/files/vCo6JDiIV1R9La9H3Lzk" alt="" width="179"><figcaption><p><em>Image 3: References in Format Pane</em></p></figcaption></figure>

2. Format the lines and the range using the options as shown below:

<figure><img src="/files/ged94GlexF8LMcx2pYKa" alt="" width="544"><figcaption><p><em>Image 4: Reference Formatting options</em></p></figcaption></figure>

3. Line type has four options:

* Dotted
* Solid
* Dashed
* Dashed-dotted

<figure><img src="/files/QyAWVX8bol7BIu0zdNOo" alt="" width="181"><figcaption><p><em>Image 5: Line type Reference Formatting option</em></p></figcaption></figure>

4. The width of the Line can be set using **Line Stroke** option and the color can be set using **Line Color** option.
5. There are fourteen options to set the Range Pattern:

<figure><img src="/files/ayyqXqJhSAWe2Bqq3caA" alt="" width="152"><figcaption><p><em>Image 6: Range patterns in Reference Formatting option</em></p></figcaption></figure>

**Text** can be formatted using the weight, color and text type options.


---

# 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/data-driven-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.
