This feature applies to all visual types that use the Colors shelf: Bar visuals, Line visuals, Area visuals, Combined Bar/Line visuals, Interactive map visuals, Radial visuals, and Pie visuals.
Mapping colors to a specific dimension's values enables you to choose and modify a meaningful representation of values, such as 'green | red | amber' for 'success | failure | soft-fail'. You can select colors from a different palettes to specify color-value mapping, and also ensure that these colors are used consistently across all visuals within a dashboard by combing this feature with Colors are based on dimension values, described in Making Colors Consistent on Dimension Values.
In the following example, we show how to standardize colors for a grouped-bar visual built on the dataset CA College Readiness, build from the data in table ca-graduation-rates.csv.
You must perform these steps for each visual in the app.
avg()
.Click Refresh Visual.
Click Settings on the right side of the Visuals menu.
The Settings modal window appears.
Select Colors are fixed for the values specified...., and then scroll down in the modal to see the possible colors. Note that all possible dimension values from the Colors shelf appear in the list, with their default color.
Changing the color assigned to a specific dimension value is very easy, especially when using the same color palette:
Specifying a color from another palette is slightly different.
Click Refresh Visual, and note how the colors of the graph changed to reflect the new color-dimension assignments.
If the color you want to use is not in any of the palettes available to you, you can define it through the Custom Colors interface.