# Data bars

In this section, we'll look at data bars. Note that you can either create a new rule as shown here or edit the data bars inserted using the one-click option explained [here](/working-with-inforiver/5.-conditional-formatting/one-click-options.md).

Refer to the [Create Rule](/working-with-inforiver/5.-conditional-formatting/create-rule-reporting-matrix.md) section to get started. Once the rule is created and you can see the Conditional Formatting side panel, follow the steps below.

Select 'Data bars' in the **Color scale for** dropdown. **Format by** should be set to 'Color Scale'.

<figure><img src="/files/0CiPyldfPuPUgxmnWiMb" alt=""><figcaption><p>Rendering data bars</p></figcaption></figure>

We've already covered some of the options in the [Color scales](/working-with-inforiver/5.-conditional-formatting/create-rule-reporting-matrix/color-scales.md) section. Let's look at the customization options specific to data bars.&#x20;

#### 1. Hide value

Check the **Hide value** checkbox to see only the data bars - the values are hidden.

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

#### 2. Min/max

By default, the data bars are applied to all the values (values and totals if selected in the row hierarchy levels). If you only want to use data bars for a particular range of values, you can enter a minimum and maximum value as shown. Data bars are enabled only for values between 8m and 20m in this case.

<figure><img src="/files/vRDnM5h9aVLb4A19b0Gn" alt=""><figcaption><p>Data bars for a min-max range</p></figcaption></figure>

#### 3. Alignment

Data bars can be aligned left or right using the **Alignment** field. Right alignment is shown in this example.

<figure><img src="/files/AaLwSgnfHF002jmSXosy" alt=""><figcaption><p>Alignment</p></figcaption></figure>

#### 4. Data bars for positive and negative values

When there are positive and negative values in the column for which you want to use data bars, the options differ as shown. You can choose to hide the values and select colors for positive and negative values.

<figure><img src="/files/JiCW5m6lAx120eQmwfNS" alt=""><figcaption><p>Data bars for positive and negative values</p></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://docs.inforiver.com/working-with-inforiver/5.-conditional-formatting/create-rule-reporting-matrix/data-bars.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.
