There are three different modes to color your bars in the Bar chart race template. You can find them under the Color settings.
The color modes and when to use them
If your entities can be divided into different categories, you should select to color by category.
If you would like each bar to be colored differently, you should select to color by bar.
If you would like all of your bars to have the same color so you can override certain bars, you should select to color by single color.
- 1
-
By category
-
This is the default color mode. When coloring by category, your bars will be colored based on the column bound to the Categories data binding in your datasheet.
-
For example, in the default dataset, column B, Region, is bound to Categories on the Select columns to visualize data binding. You can learn more about adding data and data bindings here.
So when coloring by category, each country will be assigned a color based on whatever is that Region column – for example blue for Africa, yellow for Americas, green for Asia, or purple for Europe. Each of these categories will also show up in the legend.
-
To change the color of a single country, you would have to assign that row to a different category, or change the column you have set to be your categories.
-
You can also change your color palette by clicking to edit it and adding or deleting colors.
-
When using color overrides in this mode, you should supply the name of the category (in this example, a Region, like Africa), not the entity (in this example, a country, like Angola). If you prefer to color by entity, you should choose to color By bar.
- 2
-
By bar
- When coloring by bar, each bar will be colored differently and be assigned a separate color.
-
When using custom overrides in this mode, you will have to supply the name of the entity, for example, Angola, and any categories defined using the Select columns to visualize panel will be ignored.
- 3
-
Single
-
When coloring with a single color, your bars will all be colored with this color by default. You can use the Color overrides box to color certain entities, and any categories defined in the data tab will be ignored.