Add Visualizations in Row Layout
You can add visualizations in a
Row Layout container and choose for each visualization, if the size
must be dynamic or fixed.
-
In the Page tree view panel, select the
Row Layout container.
-
In the Row layout properties panel, from
Visualizations go to click to add a visualization vertically.
-
For Size mode, specify how to adjust the height of your
row.
| Option | Description |
|---|
| Dynamic size |
Specifies a grow factor for the visualization compared to the other
visualizations in the container. Grow factor: Specifies
the dynamic size granted to the visualization in the container. For example, if
you have 2 visualizations in the container, the first visualization with a grow
factor set to 1, and the second visualization with a grow factor set to 2, the
second visualization takes twice the size of the first visualization.
Min size: Specifies the minimum height of the item. Below
this limit, the container shows a scroller.
|
| Fixed size |
Specifies the fixed height of your row. |
| Content size |
Specifies the height of the visualization based on its content. This is
useful for filter visualizations (Search Field and
Active Filters List), as well as all
Navigation and Media
visualizations.
Max size: Specifies the maximum height of your row.
Note:
The Content size mode is available for the following
visualizations only:
Text,
Image,
Hit Details,
Active Filters List,
Search Field,
Dropdown Menu,
Dropdown Navigation,
Link. It is
not relevant on other visualizations as they require a height from their parent
to be properly displayed.
|
-
Repeat the previous step to add more visualizations.
Result:

Switch the Orientation
You can switch from row layout (vertical) to column layout (horizontal) in one
click.
-
In the Properties panel, go to Display.
-
From Orientation, select Row or
Column.
Configure the Display
You can configure the display using several options.
-
In the Properties panel, go to Display.
-
In Title, specify the visualization title.
| Option | Description |
|---|
| Static value | To enter a static textual value. |
|---|
| Translatable value | To localize the title or label in other languages, you can select a translation key. You
define keys and translation values in the
Translation menu. |
|---|
| Expression
value |
To configure a dynamic title or label, you can enter an expression based on
the expression language. In your expression, you can use a
Variable with VARIABLES.<variable name>
and a
Translation key with I18N.<translation key
name>.
For example, you can make a dynamic title like Number of cars sold in
{{country}}, where the title string is associated with the
myKey translation key, and {{country}}
is a variable: I18N.myKey.replace("{{country}}",
VARIABLES.country)
If the variable value is France, you get Number
of cars sold in France if English is the preferred language,
Nombre de voitures vendues en France if French is the
preferred language...
You can also use Aggregations coming from the
RESULT SET of your data query.
Example 1: You can configure a count in the title to get Number of
cars: <count value>. In the RESULT
SET, from the Aggregations section,
define a count_aggr aggregation with Count
as function aggregation.

In the visualization, use the count_aggr aggregation in the
Expression value: "Number of cars: " +
cars.count_aggr Example 2: You can configure the title to
display Car sales in: <set of country values>. In the
RESULT SET, from the
Aggregations section, define a
countries_aggr aggregation with To Set
as function aggregation.
In the visualization, use the countries_aggr aggregation in
the
Expression value: "Car sales in: " +
cars.countries_aggr.joinToString(separator: ", ", limit: 3) to
display a title like Car sales in: Belgium, Denmark,
England...
|
- Optional: In Icon, select the icon that represents the visualization.
- Optional:
Select Hide header, if you want to show the
visualization without header (this hides the Title, the
icon if the visualization can show one in the header, and the
Actions menu).
- From Display type, define the display type of the visualization between Card and No card.
The Card type applies the Cards configuration defined for the applied page theme in the menu.
- Optional:
Select the Background image to show inside the
container. It supports
.svg, .jpg (and
.jpeg), and .png files.
To control the display of this background image in the Spacer,
KPI, and Text visualizations within the
container, you can:
- Configure the transparency applied to the Background
color of the visualizations, by reducing the
Alpha value.
1 means full
opacity, 0 means full transparency.
- Use the Unset color option to remove the
background color and show the background image only.
- Optional:
When you select a Background image, you can also define
from Fitting option how the image must fit in the
container among Original size, Fit
width, Fit height, and Fit
container.
Add a Condition to Show the Visualization
You can add conditions to show or hide visualizations. This is useful to choose
whether to reveal or hide information, depending on a variable value or a user role.
You can also add conditions on home page
buttons, menu sections, and subsections.
Note:
If you add several conditions on the same visual element, Data Perspective Studio interprets them implicitly with OR operators (for example,
condition1 or condition2).
-
In the Properties panel, go to Display.
-
In the Conditional display section, click to add a Condition.
-
For Select item to compare, choose one of the following
options on the right of the field:
| Option | Description |
|---|
| Variable
value |
Use this option to select the variable that stores the condition values. For
example, select a variable called myvar with an
Initial value set to 5.
The supported types of variables are:
-
String
-
Integer
-
Float
-
Boolean
-
List for any of the above types.
|
| User roles |
Use this option to verify that the user has the role defined in Value.
|
-
For Comparator, select the condition comparator.
- If you selected
Variable value, you can choose between several operators. For
example, select <= if you want the condition to apply only
if the field value is lower or equal to the condition value.
- If you selected
User roles, you can choose between
contains or does not contain.
-
For Value, specify the condition value.
- If you selected
Variable value, specify a value corresponding to the variable
type.
For example, if the variable initial value 5 is
<= to the condition value 6,
the visualization is visible.

- If you selected
User roles, enter a role trigram.
For example, if the user roles contain AEP (trigram for the Data Viewer
(AEP)
role), the Data Perspective is visible to all users having the Data Viewer
(AEP)
role.
Override the Applied Theme with a Specific Style
You can override the theme applied to all Data Workspace pages and visualizations with a specific style defining different display
settings.
Before you begin: You have defined a style in .
- In the Properties panel, go to Style.
- Select the style to apply to the visualization.
|