| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "blockenberg/bubble-chart", |
| 5 |
"title": "Bubble Chart", |
| 6 |
"category": "bkbg-charts", |
| 7 |
"icon": "chart-area", |
| 8 |
"description": "Interactive bubble chart powered by Chart.js.", |
| 9 |
"keywords": [ |
| 10 |
"chart", |
| 11 |
"bubble", |
| 12 |
"scatter", |
| 13 |
"data" |
| 14 |
], |
| 15 |
"textdomain": "blockenberg", |
| 16 |
"editorScript": "bkbg-bubble-chart-editor", |
| 17 |
"editorStyle": "bkbg-bubble-chart-style", |
| 18 |
"style": "bkbg-bubble-chart-style", |
| 19 |
"viewScript": "bkbg-bubble-chart-frontend", |
| 20 |
"supports": { |
| 21 |
"html": false, |
| 22 |
"anchor": true, |
| 23 |
"className": true, |
| 24 |
"align": [ |
| 25 |
"wide", |
| 26 |
"full" |
| 27 |
] |
| 28 |
}, |
| 29 |
"attributes": { |
| 30 |
"chartTitle": { |
| 31 |
"type": "string", |
| 32 |
"default": "Bubble Chart" |
| 33 |
}, |
| 34 |
"showTitle": { |
| 35 |
"type": "boolean", |
| 36 |
"default": true |
| 37 |
}, |
| 38 |
"datasetsJson": { |
| 39 |
"type": "string", |
| 40 |
"default": "[{\"label\":\"Dataset A\",\"color\":\"#6c3fb5\",\"bubbles\":\"10,20,15\\n30,10,25\\n50,40,10\"},{\"label\":\"Dataset B\",\"color\":\"#ec4899\",\"bubbles\":\"20,30,20\\n40,50,12\\n60,20,18\"}]" |
| 41 |
}, |
| 42 |
"showGrid": { |
| 43 |
"type": "boolean", |
| 44 |
"default": true |
| 45 |
}, |
| 46 |
"showLegend": { |
| 47 |
"type": "boolean", |
| 48 |
"default": true |
| 49 |
}, |
| 50 |
"legendPos": { |
| 51 |
"type": "string", |
| 52 |
"default": "bottom" |
| 53 |
}, |
| 54 |
"fillAlpha": { |
| 55 |
"type": "number", |
| 56 |
"default": 50 |
| 57 |
}, |
| 58 |
"bgColor": { |
| 59 |
"type": "string", |
| 60 |
"default": "#ffffff" |
| 61 |
}, |
| 62 |
"borderRadius": { |
| 63 |
"type": "number", |
| 64 |
"default": 12 |
| 65 |
}, |
| 66 |
"chartHeight": { |
| 67 |
"type": "number", |
| 68 |
"default": 400 |
| 69 |
} |
| 70 |
} |
| 71 |
} |
| 72 |
|