| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "blockenberg/scatter-chart", |
| 5 |
"title": "Scatter Chart", |
| 6 |
"category": "bkbg-charts", |
| 7 |
"icon": "chart-area", |
| 8 |
"description": "Interactive X/Y scatter plot powered by Chart.js. Reveal correlations and distributions in your data.", |
| 9 |
"keywords": [ |
| 10 |
"chart", |
| 11 |
"scatter", |
| 12 |
"scatter plot", |
| 13 |
"correlation", |
| 14 |
"data", |
| 15 |
"points", |
| 16 |
"xy" |
| 17 |
], |
| 18 |
"textdomain": "blockenberg", |
| 19 |
"editorScript": "bkbg-scatter-chart-editor", |
| 20 |
"style": "bkbg-scatter-chart-style", |
| 21 |
"viewScript": "bkbg-scatter-chart-frontend", |
| 22 |
"supports": { |
| 23 |
"html": false, |
| 24 |
"anchor": true, |
| 25 |
"className": true, |
| 26 |
"align": [ |
| 27 |
"wide", |
| 28 |
"full" |
| 29 |
] |
| 30 |
}, |
| 31 |
"attributes": { |
| 32 |
"chartTitle": { |
| 33 |
"type": "string", |
| 34 |
"default": "Scatter Chart" |
| 35 |
}, |
| 36 |
"chartSubtitle": { |
| 37 |
"type": "string", |
| 38 |
"default": "Correlation analysis" |
| 39 |
}, |
| 40 |
"showTitle": { |
| 41 |
"type": "boolean", |
| 42 |
"default": true |
| 43 |
}, |
| 44 |
"showSubtitle": { |
| 45 |
"type": "boolean", |
| 46 |
"default": true |
| 47 |
}, |
| 48 |
"datasetsJson": { |
| 49 |
"type": "string", |
| 50 |
"default": "[{\"label\":\"Group A\",\"color\":\"#6c3fb5\",\"points\":\"5,28\\n12,35\\n22,42\\n38,20\\n55,60\\n70,45\\n85,72\"},{\"label\":\"Group B\",\"color\":\"#ec4899\",\"points\":\"8,55\\n18,48\\n30,75\\n45,62\\n60,88\\n78,70\\n92,95\"}]" |
| 51 |
}, |
| 52 |
"showGrid": { |
| 53 |
"type": "boolean", |
| 54 |
"default": true |
| 55 |
}, |
| 56 |
"showLegend": { |
| 57 |
"type": "boolean", |
| 58 |
"default": true |
| 59 |
}, |
| 60 |
"legendPos": { |
| 61 |
"type": "string", |
| 62 |
"default": "bottom" |
| 63 |
}, |
| 64 |
"pointSize": { |
| 65 |
"type": "number", |
| 66 |
"default": 7 |
| 67 |
}, |
| 68 |
"pointStyle": { |
| 69 |
"type": "string", |
| 70 |
"default": "circle" |
| 71 |
}, |
| 72 |
"fillAlpha": { |
| 73 |
"type": "number", |
| 74 |
"default": 85 |
| 75 |
}, |
| 76 |
"xLabel": { |
| 77 |
"type": "string", |
| 78 |
"default": "" |
| 79 |
}, |
| 80 |
"yLabel": { |
| 81 |
"type": "string", |
| 82 |
"default": "" |
| 83 |
}, |
| 84 |
"xMin": { |
| 85 |
"type": "string", |
| 86 |
"default": "" |
| 87 |
}, |
| 88 |
"xMax": { |
| 89 |
"type": "string", |
| 90 |
"default": "" |
| 91 |
}, |
| 92 |
"yMin": { |
| 93 |
"type": "string", |
| 94 |
"default": "" |
| 95 |
}, |
| 96 |
"yMax": { |
| 97 |
"type": "string", |
| 98 |
"default": "" |
| 99 |
}, |
| 100 |
"animate": { |
| 101 |
"type": "boolean", |
| 102 |
"default": true |
| 103 |
}, |
| 104 |
"chartHeight": { |
| 105 |
"type": "number", |
| 106 |
"default": 400 |
| 107 |
}, |
| 108 |
"bgColor": { |
| 109 |
"type": "string", |
| 110 |
"default": "#ffffff" |
| 111 |
}, |
| 112 |
"borderRadius": { |
| 113 |
"type": "number", |
| 114 |
"default": 14 |
| 115 |
}, |
| 116 |
"paddingTop": { |
| 117 |
"type": "number", |
| 118 |
"default": 0 |
| 119 |
}, |
| 120 |
"paddingBottom": { |
| 121 |
"type": "number", |
| 122 |
"default": 0 |
| 123 |
}, |
| 124 |
"titleFontSize": { |
| 125 |
"type": "number", |
| 126 |
"default": 16 |
| 127 |
}, |
| 128 |
"labelFontSize": { |
| 129 |
"type": "number", |
| 130 |
"default": 12 |
| 131 |
} |
| 132 |
} |
| 133 |
} |
| 134 |
|