{ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 2, "name": "lcp/bar-graph", "version": "0.1.0", "title": "Bar Graph", "category": "lcp-blocks", "icon": "chart-bar", "description": "Display data as a bar graph", "supports": { "html": false, "anchor": true }, "textdomain": "lcp", "editorScript": "file:./index.js", "editorStyle": "file:./index.css", "style": "file:./style-index.css", "viewScript": "file:./view.js", "attributes": { "enableHierarchicalView": { "type": "boolean", "default": false }, "selectedParentId": { "type": "string", "default": null }, "chartColorSource": { "type": "string", "default": "default" }, "chartCustomColors": { "type": "array", "default": [] }, "chartData": { "type": "object", "default": {} }, "dataSource": { "type": "string", "default": "" }, "showBarValues": { "type": "boolean", "default": true }, "chartHeight": { "type": "string", "default": "400px" }, "chartWidth": { "type": "string", "default": "100%" }, "chartTitle": { "type": "string", "default": "" }, "displayChartTitle": { "type": "boolean", "default": false }, "allowDownload": { "type": "boolean", "default": false }, "downloadMaxWidth": { "type": "string", "default": "2000px" }, "showSorting": { "type": "boolean", "default": false }, "showFiltering": { "type": "boolean", "default": false }, "barColor": { "type": "string", "default": "#0073aa" }, "barOpacity": { "type": "number", "default": 1 }, "backgroundColor": { "type": "string", "default": "#ffffff" }, "showGridX": { "type": "boolean", "default": false }, "showGridY": { "type": "boolean", "default": true }, "yGridColor": { "type": "string", "default": "#e0e0e0" }, "xGridColor": { "type": "string", "default": "#e0e0e0" }, "xGridWidth": { "type": "number", "default": 1 }, "yGridWidth": { "type": "number", "default": 1 }, "xAxisLabel": { "type": "string", "default": "" }, "yAxisLabel": { "type": "string", "default": "" }, "gridOpacity": { "type": "number", "default": 0.5 }, "enableStackedBars": { "type": "boolean", "default": false } } }