Configure Statistic Widget
The statistic widget displays charts and statistics on the Portal dashboard, providing visual insights into workflow data through bar charts, line charts, pie charts, and numeric displays.
Define Statistic Widget
The statistic widget displays customizable charts with configurable data aggregation, filtering, and visualization options.
Configuration Example
Below is a sample JSON definition of a statistic widget in the Portal dashboard:
{
"id": "3e188e86a6534324b864167320ef3831",
"version": "13.1.0",
"statisticAggregation": {
"field": "state",
"type": "standard",
"kpiField": "InvoiceTotalAmount",
"aggregationMethod": "avg"
},
"filters": [
{
"field": "state",
"values": [
"DONE",
"IN_PROGRESS",
"OPEN"
],
"operator": "in",
"type": "standard"
}
],
"permissions": [
"Everybody"
],
"chartTarget": "task",
"chartType": "bar",
"icon": "si-add-circle",
"refreshInterval": 300,
"names": [
{
"locale": "en",
"value": "New statistic"
},
{
"locale": "fr",
"value": "Nouvelle statistique"
},
{
"locale": "de",
"value": "Neue Statistik"
},
{
"locale": "ja",
"value": "新しい統計"
},
{
"locale": "es",
"value": "Nueva estadística"
}
],
"descriptions": [
{
"locale": "en",
"value": "Demo new statistic"
},
{
"locale": "fr",
"value": "Démonstration d'une nouvelle statistique"
},
{
"locale": "de",
"value": "Neue Demo-Statistik"
},
{
"locale": "ja",
"value": "新しい統計のデモ"
},
{
"locale": "es",
"value": "Demo nueva estadística"
}
],
"barChartConfig": {
"xTitles": [
{
"locale": "en",
"value": "State"
},
{
"locale": "fr",
"value": "État"
},
{
"locale": "de",
"value": "Status"
},
{
"locale": "ja",
"value": "状態"
},
{
"locale": "es",
"value": "Estatus"
}
],
"yTitles": [
{
"locale": "en",
"value": "Number of tasks"
},
{
"locale": "fr",
"value": "Nombre de tâches"
},
{
"locale": "de",
"value": "Anzahl der Aufgaben"
},
{
"locale": "ja",
"value": "タスクの数"
},
{
"locale": "es",
"value": "Número de tareas"
}
],
"backgroundColors": [
"#6299f7",
"#8dc261",
"#98bffa",
"#bee3cb",
"#c8befa",
"#f5bf9f",
"#f8da96",
"#f9908c"
]
}
}
JSON Configuration Reference
Required Properties
Property |
Type |
Description |
|---|---|---|
|
string |
Unique identifier for the statistic widget |
|
string |
Current version of the widget configuration |
|
string |
Data source. Options: |
|
string |
Chart visualization type. Options: |
|
array |
Multilingual display names. Each entry: |
Data Aggregation
Property |
Type |
Required |
Description |
|---|---|---|---|
|
object |
Yes |
Defines how data is grouped and calculated |
|
string |
Yes |
Field to group by (e.g., “state”, “priority”) |
|
string |
Yes |
Field type: |
|
string |
No |
Numeric custom field for calculations (e.g., “InvoiceTotalAmount”) |
|
string |
No |
Calculation method: |
Note
When kpiField and aggregationMethod are not provided, the chart displays count statistics (number of tasks or cases). When specified, the chart applies the aggregation method to numeric values in kpiField.
Filtering & Permissions
Property |
Type |
Description |
|---|---|---|
|
array |
Data filters. Each filter: |
|
array |
Role names that can view this chart (e.g., |
Display Options
Property |
Type |
Default |
Description |
|---|---|---|---|
|
array |
(empty) |
Multilingual descriptions. Each entry: |
|
string |
(none) |
Icon class (e.g., |
|
number |
|
Auto-refresh interval in seconds (minimum 60) |
Tip
Recommended statistic widget size: Width 3-6 columns, Height 4-8 rows for optimal chart display with labels.
Chart-Specific Configuration
Each chart type supports additional configuration for axis labels and colors:
Bar Chart Configuration
For chartType: "bar", add barChartConfig:
Property |
Type |
Description |
|---|---|---|
|
array |
Multilingual x-axis labels. Each entry: |
|
array |
Multilingual y-axis labels |
|
array |
Hex color codes for bars (e.g., |
Line Chart Configuration
For chartType: "line", add lineChartConfig:
Property |
Type |
Description |
|---|---|---|
|
array |
Multilingual x-axis labels |
|
array |
Multilingual y-axis labels |
|
array |
Hex color codes for line segments |
Pie Chart Configuration
For chartType: "pie", add pieChartConfig:
Property |
Type |
Description |
|---|---|---|
|
array |
Hex color codes for pie slices |
Number Chart Configuration
For chartType: "number", add numberChartConfig:
Property |
Type |
Description |
|---|---|---|
|
boolean |
Toggle to show/hide the number chart label |