> ## Documentation Index
> Fetch the complete documentation index at: https://docs.invoca.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Change Chart Colors

> Customize the colors used for bars, lines, areas, bubbles, maps, legends, and conditional formatting in a chart.

To change the colors used in a chart, use the **Customize** menu and select the chip for the column or value you want to change. You can set colors for bars, lines, areas, bubbles, maps, and other visuals; slice with color; legends; and table conditional formatting.

You can also [apply conditional formatting](/s/article/apply-conditional-formatting) to change color based on specified criteria. This type of conditional formatting doesn't work with line charts.

Colors are maintained across searches within a session. For example, when searching on revenue by state, each state keeps its assigned color even if you change the search or chart type.

## Set colors on a chart

1. While viewing your search or Dashboard Tile as a chart, click the **chart configuration** icon.
2. Click the color chip for the column or value you want to change. Editable chips have a **more** icon (`>`).
3. Use the color picker to choose a new color, or enter a Hex value directly. Changes save immediately.
4. Click the **X** at the top right to dismiss the chart configuration panel.

## Set colors from the legend

When you slice with color, or have more than one column on an axis, a legend appears next to or below your chart, showing which value each color represents. Click the color circle next to a legend item to change its color, or enter a Hex value directly.

Click the color circle **next to** the legend item, not the item itself — clicking the item temporarily [hides it from the chart](/s/article/hide-and-show-values).

## How chart colors work

Invoca's color palette follows a standard format with Primary, Lightest, Light, Dark, and Darkest shade rows across 8 primary colors.

**Standard color algorithm:** If a chart requires only one color, Invoca selects a primary color depending on whether color rotation is enabled. If the chart requires more than one color, Invoca determines the number of shades of each color by dividing the total number of colors needed by the number of primary colors.

**Primary color count** depends on the total colors required: 1 needs 1 primary; 2–8 need 4; 9–15 need 5; 16–24 need 6; 25–35 need 7; 36+ need 8.

**Color rotation** determines whether single-color charts use a random primary color or always the first one in the palette. Disabling it only affects single-color charts.

**Rainbow mode** is used by some chart types to allocate colors by cycling through all primary colors before repeating shades.

**Chart-specific color algorithms:**

| Chart type(s)                                                                  | Behavior                                                                                    |
| :----------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------ |
| Column, Stacked Column, Pie, Bar, Stacked Bar, Line Column, Area, Stacked Area | Standard algorithm, default mode                                                            |
| Line, KPI, Bubble, Waterfall                                                   | Rainbow mode                                                                                |
| Heatmap                                                                        | Color range based on Primary 2                                                              |
| Treemap                                                                        | Color range based on Primary 1                                                              |
| Line Stacked Column                                                            | Applies color to the line before the columns                                                |
| Scatter, Sankey                                                                | Colors based on the order of points in the data response; Sankey colors can't be overridden |
| Geo Heatmap                                                                    | A specific lilac shade, no overrides                                                        |
| Geo Area                                                                       | A yellow-to-red gradient built around a selected color                                      |
| Candlestick                                                                    | Up/down colors default to green/red, overridable manually                                   |
| Pareto                                                                         | Cumulative line uses the first color; the active Measure uses the second                    |

## Where to go next

* [Select chart color palettes](/s/article/select-chart-color-palettes)
* [Apply conditional formatting](/s/article/apply-conditional-formatting)
