In this article
Metrics widget on the Account Overview page shows aggregations of key metrics, including questions, average values, thermometers, and comment counts.
The Metrics widget on the Account Overview page displays aggregations of key metrics.
It showcases questions, displays the average values, thermometers, and count of comments for each question.
Example of a metrics widget
Setting up a Metrics Widget using CDL
The Metrics widget has header and row tiles, and can showcase questions, average values, thermometers, and comment counts. See CDL Reference Guide.
The Metrics widget has two types of tiles: header and row. Each type of tile can include several different items. An example of the code used to create and configure a Metrics widget is provided here:
page "Overview" {
widget metricsBeta {
view metricWithBar metric {
backgroundColorFormatter: backgroundColorFormatter
valueColorFormatter: valueColorFormatter
chartColorFormatter: chartColorFormatter
fontSize:small
roundCorners:false
}
label: "Metrics"
size: medium
tile header {
item title {
value: 'KPI'
}
item title {
value: 'Avg'
}
item title {
value: 'Comments'
}
}
tile row {
item value {
value: 'LTR'
rowHeader: true
}
item metric {
value: average(score(survey:Q1))
target: 8
view: metric
}
item value {
value: count(survey:Q2)
align: right
}
}
tile row {
item value {
value: 'Product is scalable'
rowHeader: true
}
item metric {
value: average(score(survey:Q9.1))
view: metric
target: 7
}
item value {
value: ''
}
}
tile row {
item value {
value: 'Areas of Improv. Comments'
rowHeader: true
}
item metric {
value: ''
format: null
}
item value {
value: 13
align: right
}
}
}
}For details of the properties and settings, refer to widget metrics in the CDL Reference Guide.