Refactored LCPDataGrid

This commit is contained in:
Jeremy Rangel
2025-01-24 03:06:04 -08:00
parent 23944b0052
commit be3a4fb9ff
12 changed files with 427 additions and 689 deletions

View File

@ -5,7 +5,7 @@
"version": "1.0.0",
"title": "Line Graph",
"category": "widgets",
"icon": "chart-bar",
"icon": "chart-line",
"description": "Display data as a line graph using D3.js",
"supports": {
"html": false
@ -48,24 +48,7 @@
},
"chartData": {
"type": "array",
"default": [
{
"ID": "lcpDatapoint-1",
"Label": "Sample 1",
"Value": 100,
"Color": "#007cba",
"Content": "<p>First item</p>",
"Parent": ""
},
{
"ID": "lcpDatapoint-2",
"Label": "Sample 2",
"Value": 50,
"Color": "#ff0000",
"Content": "<p>Second item</p>",
"Parent": "lcpDatapoint-1"
}
]
"default": []
},
"chartHeight": {
"type": "string",
@ -93,15 +76,15 @@
},
"colorColumn": {
"type": "string",
"default": "Color"
"default": "color"
},
"popoverColumn": {
"type": "string",
"default": "Content"
"default": "content"
},
"renderLegend": {
"type": "boolean",
"default": true
"default": false
},
"legendFontSize": {
"type": "string",
@ -157,7 +140,7 @@
},
"toolbarLocation": {
"type": "string",
"default": "bottom"
"default": "top"
},
"toolbarAlignment": {
"type": "string",