# Bar

With a bar-type animation, we can change the size of an object on the mimic display.&#x20;

## Bar-Tag

As shown in Figure 1, we configure the proportional change of a variable value named "Percent" of a rectangular object on a mimic screen in the range of 0-100.

![Figure 1 : Bar-Tag Animasyon](/files/-LkSb1f7AoDb0hZaE85v)

## Bar-Expression

Unlike Bar-Tag animation, you can change the size of an object, not just by the selection of variables, but as a result of user-programmable operations.

Below are small examples that can be written in the Bar-Expression section.

#### Examples

```javascript
var val=ins.getVariableValue("STREAM01_LINE_PRESSURE");
var max=ins.getVariableValue("STREAM01_LINE_PRESSURE_MAX");
var min=ins.getVariableValue("STREAM01_LINE_PRESSURE_MIN");
result=(val/(max-min))*100;    // adjusting the value range of the bar graph
return result;


```

```javascript
var val=ins.getVariableValue("POOL_LEVEL");
return (val/206)*100;  // min=0  ,  max=206 

```


---

# 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://inscada.gitbook.io/ins/en-1/user-interface/development/animations/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.
