Added support for front-end rendering

This commit is contained in:
Jeremy Rangel
2025-01-15 03:48:59 -08:00
parent cb0ab8055d
commit 83f5cad36f
8 changed files with 394 additions and 41 deletions

View File

@ -3,12 +3,13 @@
"apiVersion": 2,
"name": "lcp/bar-graph",
"version": "0.1.0",
"title": "LCP Bar Graph",
"category": "widgets",
"title": "Bar Graph",
"category": "lcp-blocks",
"icon": "chart-bar",
"description": "Display data in a bar graph format.",
"description": "Display data as a bar graph",
"supports": {
"html": false
"html": false,
"anchor": true
},
"textdomain": "lcp",
"editorScript": "file:./index.js",
@ -24,6 +25,14 @@
"type": "array",
"default": []
},
"chartData": {
"type": "object",
"default": {}
},
"dataSource": {
"type": "string",
"default": ""
},
"showBarValues": {
"type": "boolean",
"default": true
@ -60,14 +69,6 @@
"type": "boolean",
"default": false
},
"chartData": {
"type": "object",
"default": {}
},
"dataSource": {
"type": "string",
"default": "manual_json"
},
"barColor": {
"type": "string",
"default": "#0073aa"