# Display Bar

This interface displays a numerical value based on a range and lighting up different number of bars depending on the value.

<figure><img src="/files/bHyzxp1bEyFNpv5CRwli" alt=""><figcaption></figcaption></figure>

You can adjust the style / direction of the bars to be either vertical or horizontal.

You can also define the on and off color, the range of the value and the number of segments you want to show.

<figure><img src="/files/F5LiNfVR9d8E5GdeAcpv" alt=""><figcaption></figcaption></figure>


---

# 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://stage-precision.gitbook.io/grid/widget-creation/creating-your-own-widgets/adding-interfaces/display-bar.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.
