Component description
The binary-value component visualizes the proportion between two attribute values.
Example
Minimal JSON
{
"type": "binary-value"
}{
"type": "binary-value",
"componentId": "binary-value-component",
"rows": [
{
"mainAttributeType": {
"title": "title.binary-value1",
"value": "attributeType_1"
},
"secondaryAttributeType": {
"title": "title.binary-value2",
"value": "attributeType_2"
}
}
]
}Nested properties
| Property | Description | Values | Mandatory |
|---|---|---|---|
type | binary-value | 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 |
rows | Array of attributes that are used to calculate the percentages. | json | No |