Bar chart
Prints labelled non-negative values as vertical bars.
Item labels must be unique. If yMax is provided, it must be at least as large as every item value.
Example
{
"type": "barChart",
"items": [
{
"label": "Mon",
"value": 12
},
{
"label": "Tue",
"value": 18
}
]
}Fields
| Field | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
typerequired | "barChart" | Discriminator for bar-chart blocks. | |||||||||
itemsrequired | array<object> | Labelled values plotted as vertical bars.
Nested fields
| |||||||||
yMaxoptional | number | Optional upper bound for the y-axis.
|