Add Display Rules
- From the navigation menu, select .
-
In the Query fields panel:
-
Select either a data query or
a data fusion.
If you select a data query, also select a Result Set.
-
For a query field, click to
create a display rule.
The Create display rule from "<field name>" field dialog box opens.
-
To create a display rule, give it a Name and associate it
with a Package.
Packages allow you to gather display rules by common themes. For example, you can have a
Taskpackage for fields related to tasks, and aProjectpackage for fields related to projects.Note: You can also use packages to have several variations of the same display rules. For example, you could have:- A
Projectpackage with aPrioritydisplay rule mapped with red, orange, and green colors. - A
Taskpackage with aPrioritydisplay rule mapped with red, orange, green, and blue colors.
- A
-
Click Create.
The Display rules panel shows the newly created display rule within the chosen package.Note: In the Query fields panel, the field shows a link icon and the name of its bound display rule.
-
Select either a data query or
a data fusion.
-
In the Display rules panel, configure your display rule.
Option Description Configuration type Select how to configure the display rule:
- Custom: To specify the mapping of your choice.
Tip: To save time, click Quick field value mapping. This opens an editor to associate field values with colors and translations keys for localization. - Numeric: To specify a gradient color scale based on numerical values.
Default color Specify the default color to use when no mapping matches.
Color mapping Specify the colors to apply to each value. For example, you can map the green color to match the SUCCESS value, and the red color to match the ERROR value.
Tip: To save time, click Quick field value mapping. Translation mapping Define mappings between field values and translation keys. The Data Perspective translates the field values in the user's preferred language automatically, for all the visualizations calling the display rule.
Important: Specify a Translation key containing the various translations defined for a specific Field value. You define the translations associated with this key in the Translation menu. For example, the
United Kingdomfield value (from thecountryfield) has a mapping with thekey-uktranslation key. If the preferred language is English, the Data Perspective displays United Kingdom in the visualizations. If it is French (and you defined the corresponding translation value), the Data Perspective displays Royaume Uni... , for all the translations defined for the translation key.Warning: - This feature is not available yet on the Waterfall chart.
- If the field value is stored in a variable, the Data Perspective cannot resolve the display rule for the translation. For example, if your
visualization uses a Set variable on-click effect
specifying a
countryvariable, the Data Perspective cannot translate its country values (for example, France, India, Great Britain, Japan, China... into other languages).
Tip: To save time, click Quick field value mapping. - Custom: To specify the mapping of your choice.
Result: Once your display rule is created, you can:
- Drop a field on the display rule in the Display rules panel, or inversely, drop the display rule on a field in the Query fields panel to bind them together.
- Click in the Query fields to unbind a display rule and a field.
