Styling New in 2
Audience:
Low-code EngineersSkill Prerequisites:
Dashboard,CSS
Each widget's look is on its Styling tab in the Dashboard Builder. The canvas previews every change as you make it.
Colours, icon and format

- Background Color and Font Color: a KPI tile is coloured by its background; a chart is drawn on its background, with its titles and labels in its font colour.
- Icon (KPI tiles): click it to pick another icon. On a narrow tile the icon gets smaller, and is hidden below 150 pixels.
- Format (KPI tiles and KPI trends): how the number is written, e.g.
Rounded Moneyfor "$100,825".
Draw each value its own way
On a line or bar chart, each value has its own row on Styling:

- Draw as:
BarorLine. Drawing one value as a line in a bar chart makes a combo chart. - Axis:
LeftorRight. The right axis has a scale of its own, for a value whose numbers are much larger or smaller than the others', for example revenue next to a number of orders. The builder suggests it when a value is about ten times the others. - Colour: the value's colour. Values you don't colour take the palette's next colour.
- Fill area (lines): fills the area under the line, in a see-through Fill colour.
For example, revenue as bars and cost as a line:

Horizontal bar, scatter and bubble charts list each value with its colour; a pie or doughnut lists each slice by its label, with its colour.
Thresholds
Thresholds change a widget's colour as its value reaches set numbers, for example red below a target, green above it. Each step's label says the same in words, so the status isn't told by colour alone.
On a KPI tile
-
On the tile's Styling tab, under Thresholds, click Semaphore and choose Higher is better: red, yellow, green or Lower is better: green, yellow, red. Or click + Add threshold to add steps yourself.
-
Fill in each step's From, the number from which it applies, e.g.
50000and90000. It can be a token that gives a number, e.g.[Goal:Target]. -
Change each step's colour and Label if you like. Below is the colour and label under the first step.

-
Click SAVE.
The tile takes the colour and label of the highest step its number reaches. The label shows after the time range:

The text keeps the font colour when it reads well on the step's colour, and switches to white or dark grey when it doesn't.
On a line or bar chart
Each value of a line or bar chart has a Thresholds button under its row on Styling, with the same editor.
- A value drawn as bars colours each bar by the step its value reaches.
- A value drawn as a line colours each point by its step, and draws a dashed line across the chart at each step.
- The tooltip ends with the step's label, e.g. "Count: 4 · At risk".
A KPI trend uses its value's thresholds to colour the whole tile.
Description
On General, under the title, an optional Description explains what the widget counts. Viewers read it from an info icon next to the title. Tokens such as [User:DisplayName] are replaced for each viewer.
Root CSS Classes
For styling beyond the colours, add your own CSS classes and put the CSS in the skin or the page.
- A widget's Root CSS Classes, last on its Styling tab, are added to the widget's element, e.g.
shadow-sm rounded-3. - The dashboard's Root CSS Classes, on the builder's Settings tab, are added to the dashboard's
<paa-dashboard>element, e.g.sales-board.
Both can use tokens, e.g. role-[User:Role], replaced for each viewer.
Every widget and dashboard also has built-in classes you can target:
| Element | Built-in classes |
|---|---|
| The dashboard | paa-dashboard, paa-dash-layout-grid or paa-dash-layout-custom, paa-dash-module-<module id> |
| Every widget | paa-dash-widget, and paa-dash-widget-<id>, e.g. paa-dash-widget-card1 |
| A KPI tile | paa-dash-kpi |
| A chart | paa-dash-chart, and paa-dash-chart-<type>, e.g. paa-dash-chart-line, paa-dash-chart-kpitrend |
For example, to round the KPI tiles of one dashboard:
.sales-board .paa-dash-kpi {
border-radius: 12px;
overflow: hidden;
}
The colours chosen on Styling are set on the widget itself, so a class doesn't override them.