Copy
Ask AI
{
"type": "object",
"properties": {
"type": {
"const": "BarChart",
"default": "BarChart",
"type": "string"
},
"cssClass": {
"type": [
"string",
"null"
],
"default": null,
"description": "CSS/Tailwind classes for styling"
},
"data": {
"anyOf": [
{
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array"
},
{
"type": "string"
}
],
"description": "Row data or {{ interpolation }} reference"
},
"series": {
"description": "Series to render as bars",
"items": {
"$ref": "ChartSeries"
},
"type": "array"
},
"xAxis": {
"type": [
"string",
"null"
],
"default": null,
"description": "Data key for x-axis labels"
},
"height": {
"default": 300,
"description": "Chart height in pixels",
"type": "integer"
},
"stacked": {
"default": false,
"description": "Stack bars",
"type": "boolean"
},
"horizontal": {
"default": false,
"description": "Render as horizontal bar chart",
"type": "boolean"
},
"barRadius": {
"default": 4,
"description": "Corner radius on bars",
"type": "integer"
},
"showLegend": {
"default": false,
"description": "Show legend",
"type": "boolean"
},
"showTooltip": {
"default": true,
"description": "Show tooltip on hover",
"type": "boolean"
},
"showGrid": {
"default": true,
"description": "Show cartesian grid",
"type": "boolean"
}
},
"required": [
"type",
"data",
"series"
]
}