diff --git a/blocks/bar-graph/build/block.json b/blocks/bar-graph/build/block.json index 857ef1f..b618518 100644 --- a/blocks/bar-graph/build/block.json +++ b/blocks/bar-graph/build/block.json @@ -11,6 +11,10 @@ "html": false }, "attributes": { + "selectedDataset": { + "type": "number", + "default": 1 + }, "columnTypes": { "type": "object", "default": {} @@ -39,29 +43,93 @@ "type": "number", "default": 1 }, - "datasets": { + "gridColumnDefinitions": { "type": "array", "default": [ { "name": "Data", + "columns": [ + { + "field": "Department", + "dataType": "text", + "renderFormat": "text", + "sorted": "", + "width": 150, + "editable": true, + "position": 0 + }, + { + "field": "Budget", + "dataType": "number", + "renderFormat": "currency", + "sorted": "asc", + "width": 120, + "editable": true, + "position": 1 + }, + { + "field": "MeetAt", + "dataType": "date", + "renderFormat": "datetime", + "sorted": "", + "width": 150, + "editable": true, + "position": 2 + } + ] + }, + { + "name": "Locations", + "columns": [ + { + "field": "State", + "dataType": "text", + "renderFormat": "text", + "sorted": "", + "width": 150, + "editable": true, + "position": 0 + }, + { + "field": "Coordinates", + "dataType": "number", + "renderFormat": "number", + "sorted": "", + "width": 120, + "editable": true, + "position": 1 + } + ] + } + ] + }, + "test": { + "type": "string", + "default": "" + }, + "datasets": { + "type": "array", + "default": [ + { + "name": "Main", "data": [ { "Department": "Sheriffs Office", - "Budget": "150", + "Budget": 1, "MeetAt": "2025-01-26T14:30:00Z", "preferredColor": "red", "PostContent": "