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

PropertyDescriptionValuesMandatory
typebinary-valuestringYes
componentIdUnique 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).stringNo
rowsArray of attributes that are used to calculate the percentages.jsonNo