# Conditionally coloring column(s)

In SuperTables you can conditionally color columns to better visualize your data.

<figure><img src="https://content.gitbook.com/content/e2zyseN6XFBaLs6YTcnd/blobs/URaP1B6h2KimGZmONhJB/Screenshot%202024-07-26%20at%2011.35.15.png" alt=""><figcaption><p>The right most column is conditionally colored.</p></figcaption></figure>

#### Step 1: Open Configuration&#x20;

{% tabs %}
{% tab title="Dashboard extension" %}
Click on the container that has SuperTables running. This will display an arrow that you can click to open a menu. Upon opening the menu, click the 'Configure...' option to open the configuration panel for SuperTables.

<figure><img src="https://content.gitbook.com/content/e2zyseN6XFBaLs6YTcnd/blobs/JzxeG4VLn2zclaR8qB75/Screenshot%202024-07-26%20at%2010.19.27.png" alt=""><figcaption><p>Opening configuration panel in Dashboard </p></figcaption></figure>
{% endtab %}

{% tab title="Viz extension" %}
To open the configuration panel, simply click 'Format extension' in the Marks pane.

<figure><img src="https://1304574535-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fe2zyseN6XFBaLs6YTcnd%2Fuploads%2Fw5utOJdGi7lwy7cAHLRy%2Fimage.png?alt=media&#x26;token=e238d541-06e2-4d82-aa4e-a08e2c7d4bbf" alt="" width="247"><figcaption><p>Opening the configuration panel in Viz extensions</p></figcaption></figure>
{% endtab %}
{% endtabs %}

#### Step 2: Navigate to the Data tab

<figure><img src="https://content.gitbook.com/content/e2zyseN6XFBaLs6YTcnd/blobs/pHEx6g6km0B2CWfcNBoK/Screenshot%202024-07-26%20at%2010.54.43.png" alt=""><figcaption></figcaption></figure>

#### Step 3: Select your column

Select your column and scroll down to 'Conditional color formatting' section.

<figure><img src="https://1304574535-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fe2zyseN6XFBaLs6YTcnd%2Fuploads%2FNl591oujdrHFQnbZmSiW%2Fimage.png?alt=media&#x26;token=0d38770f-bf9b-44b8-91ea-19a547085d67" alt=""><figcaption></figcaption></figure>

#### Step 4: Setting up your first conditional coloring

1. Select color cell background from the radio options.
2. Select a target column, select the same column as the one you have navigated to.
3. Select a below bounds color by clicking on the color swatch
4. Select a above bounds color by clicking on the color swatch
5. Setup an inbounds color.
6. Setup a lower bound.
   1. if your measure spans from -100 to 100 and you want any value below 0 to be colored according to your below bounds color then choose 0 as your lower bound.
7. Setup an upper bound.
   1. if your measure spans from -100 to 100 and you want any value above 50 to be colored according to your below bounds color then choose 50 as your upper bound.
8. Click Apply and Close
9. Now your measure should be color with your chosen colors.

The section below explains all the additional coloring options available.

## Conditional Coloring Options

#### Color cell background

This options applying your coloring settings to the cell background

<figure><img src="https://content.gitbook.com/content/e2zyseN6XFBaLs6YTcnd/blobs/CQINFFyRIDp93zy0MtlA/Screenshot%202024-07-26%20at%2013.13.11.png" alt=""><figcaption></figcaption></figure>

#### Color cell text

This options applying your coloring settings to the cell background

<figure><img src="https://content.gitbook.com/content/e2zyseN6XFBaLs6YTcnd/blobs/4VNtIrFGlJfRstAQedAG/Screenshot%202024-07-26%20at%2013.13.53.png" alt=""><figcaption></figcaption></figure>

#### Color entire row

By default the conditional coloring is only applied to the column but with option you can apply it to the whole row instead.

<figure><img src="https://content.gitbook.com/content/e2zyseN6XFBaLs6YTcnd/blobs/IWCDBwuK7mPeewZ1ps4W/Screenshot%202024-07-26%20at%2013.14.43.png" alt=""><figcaption></figcaption></figure>

{% tabs %}
{% tab title="Normal" %}

<figure><img src="https://content.gitbook.com/content/e2zyseN6XFBaLs6YTcnd/blobs/NGNlGuSRp2FPNRhEOOnr/Screenshot%202024-07-26%20at%2013.15.42.png" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Whole Row" %}

<figure><img src="https://content.gitbook.com/content/e2zyseN6XFBaLs6YTcnd/blobs/lLtvL54pNcOIS06WqY3h/Screenshot%202024-07-26%20at%2013.16.05.png" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

#### Target Column

The column you use to color the column. The target column can be any other column. You can use one column to color another.

#### Color bounds

1. Lower Bound: The minimum value, anything value in column that is below this value will be colored with below bounds color.
2. Upper Bound: The maximum value, anything value in column that is above this value will be colored with below bounds color.
3. Below-Bounds Color: Color used to color values lower than or equal to lower bound.
4. Above-Bounds Color: Color used to color values higher than or equal to Upper bound.
5. In-bounds Color: Color used to color values between lower and upper bound.

#### Using a gradient

By default conditional coloring uses discrete values for upper, in and lower bounds but turning this option on will convert discrete coloring to gradient (continuous) resulting from lower bound to upper bound.&#x20;

<figure><img src="https://content.gitbook.com/content/e2zyseN6XFBaLs6YTcnd/blobs/EnyJOj1ZKOttp2ceP9yq/Screenshot%202024-07-26%20at%2013.21.14.png" alt=""><figcaption></figcaption></figure>

#### Custom font color

You can also assign a custom color to your font. The default color is b**lack**

<figure><img src="https://content.gitbook.com/content/e2zyseN6XFBaLs6YTcnd/blobs/u4YwgAkm460RPHTPykSH/Screenshot%202024-07-26%20at%2013.23.38.png" alt=""><figcaption></figcaption></figure>

#### Barchart

Instead of just coloring the cell you can also create a bar chart within the cell.&#x20;

<figure><img src="https://content.gitbook.com/content/e2zyseN6XFBaLs6YTcnd/blobs/bMYr0VIDDlZXAVtvQC3g/Screenshot%202024-07-26%20at%2013.25.25.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/e2zyseN6XFBaLs6YTcnd/blobs/c3owoEoDnypJn2b2ML6r/Screenshot%202024-07-26%20at%2013.26.09.png" alt=""><figcaption></figcaption></figure>

Min-Value: is the value where your barchart length is 0.

Max-Value: is the value where your barchart length is 100.
