Adding color rules
By adding color rules, you can let the colors of specified items deviate from the ordinary coloring of the visualization items.
To specify conditions, different rule types are predefined. Which rule types are available depends on whether the column that is selected on the Color by axis contains categorical values or numerical values.
More than one color rule can be added to a visualization.
Right-click the visualization, and select
Properties in the opened menu.
The Properties pop-over is displayed.
The Color section is displayed.
- Make sure the column you want to color by is selected on the Color by axis.
Add color rule.
The Add color rule dialog is displayed. The dialog provides different rule types depending on whether the selected column on the Color by axis contains categorical values or numerical values.
Rule type in the drop-down menu.
Different rule types require different inputs such as fixed values that you type, aggregations selected from the drop-down menu, or custom expressions. For example, in a Top rule, the input is how many top values should stand out.
- In the field below Rule type, specify the needed input using the drop-down menu or entering a value.
- Click the Color square to, from the displayed palette, select which color to use for the items fulfilling the rule.
If you want, type a
Display name for the added rule in the field.
The display name is displayed in the legend. If you leave the field empty, the default rule type name is shown.
- Click OK.
Example of color rule
In the scatter plot below, the markers represent how much money each customer spent at the electronics and toys departments in a store. The gradient coloring of the marker indicate the age of the customers.
Assume you want to examine the buying behavior among the oldest customers. By adding the Top color rule with 25 as input value, the markers representing the 25 oldest customers are distinguished.