Component description
The length-statistics component visualizes a histogram (how values in a dataset are distributed) of scanned data, with vertical markers for the mean and median. The distribution can be also estimated from a data sample.
Example
Minimal JSON
{
"type": "length-statistics"
}{
"type": "length-statistics",
"componentId": "",
"histogramAttributeTypeKey": "at_histogram",
"maxValueAttributeTypeKey": "at_maxValue",
"meanAttributeTypeKey": "at_mean",
"medianAttributeTypeKey": "at_median",
"minValueAttributeTypeKey": "at_minValue",
"noValueText": "title.no_value"
}Nested properties
| Property | Description | Values | Mandatory |
|---|---|---|---|
type | length-statistics | string | Yes |
componentId | Unique ID of a component. If left empty, a random string will be generated. Primarily used in patch packages to define the component's position within the layout (template). | string | No |
histogramAttributeTypeKey | Key of the attribute type with the histogram data. | string | No |
maxValueAttributeTypeKey | Key of the attribute type with the maximum value. | string | No |
meanAttributeTypeKey | Key of the attribute type with the mean value. | string | No |
medianAttributeTypeKey | Key of the attribute type with the median value. | string | No |
minValueAttributeTypeKey | Key of the attribute type with the minimum value. | string | No |
noValueText | Translation key of the text. Define the key in translations to specify how the text is displayed in the UI. | string | No |