| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"name": "blockenberg/scatter-plot", |
| 4 |
"title": "Scatter Plot", |
| 5 |
"category": "bkbg-charts", |
| 6 |
"icon": "chart-area", |
| 7 |
"description": "XY scatter plot with multiple labelled series and optional trendline display.", |
| 8 |
"textdomain": "blockenberg", |
| 9 |
"editorScript": "bkbg-scatter-plot-editor", |
| 10 |
"style": "bkbg-scatter-plot-style", |
| 11 |
"attributes": { |
| 12 |
"title": { |
| 13 |
"type": "string", |
| 14 |
"default": "Performance vs Satisfaction" |
| 15 |
}, |
| 16 |
"showTitle": { |
| 17 |
"type": "boolean", |
| 18 |
"default": true |
| 19 |
}, |
| 20 |
"svgWidth": { |
| 21 |
"type": "number", |
| 22 |
"default": 680 |
| 23 |
}, |
| 24 |
"svgHeight": { |
| 25 |
"type": "number", |
| 26 |
"default": 380 |
| 27 |
}, |
| 28 |
"padTop": { |
| 29 |
"type": "number", |
| 30 |
"default": 30 |
| 31 |
}, |
| 32 |
"padLeft": { |
| 33 |
"type": "number", |
| 34 |
"default": 60 |
| 35 |
}, |
| 36 |
"padRight": { |
| 37 |
"type": "number", |
| 38 |
"default": 30 |
| 39 |
}, |
| 40 |
"padBottom": { |
| 41 |
"type": "number", |
| 42 |
"default": 60 |
| 43 |
}, |
| 44 |
"dotRadius": { |
| 45 |
"type": "number", |
| 46 |
"default": 6 |
| 47 |
}, |
| 48 |
"showGrid": { |
| 49 |
"type": "boolean", |
| 50 |
"default": true |
| 51 |
}, |
| 52 |
"showLegend": { |
| 53 |
"type": "boolean", |
| 54 |
"default": true |
| 55 |
}, |
| 56 |
"showLabels": { |
| 57 |
"type": "boolean", |
| 58 |
"default": false |
| 59 |
}, |
| 60 |
"xAxisLabel": { |
| 61 |
"type": "string", |
| 62 |
"default": "Performance Score" |
| 63 |
}, |
| 64 |
"yAxisLabel": { |
| 65 |
"type": "string", |
| 66 |
"default": "Satisfaction Index" |
| 67 |
}, |
| 68 |
"xMin": { |
| 69 |
"type": "number", |
| 70 |
"default": 0 |
| 71 |
}, |
| 72 |
"xMax": { |
| 73 |
"type": "number", |
| 74 |
"default": 100 |
| 75 |
}, |
| 76 |
"yMin": { |
| 77 |
"type": "number", |
| 78 |
"default": 0 |
| 79 |
}, |
| 80 |
"yMax": { |
| 81 |
"type": "number", |
| 82 |
"default": 100 |
| 83 |
}, |
| 84 |
"labelFontSize": { |
| 85 |
"type": "number", |
| 86 |
"default": 12 |
| 87 |
}, |
| 88 |
"labelFontWeight": { |
| 89 |
"type": "number", |
| 90 |
"default": 400 |
| 91 |
}, |
| 92 |
"bgColor": { |
| 93 |
"type": "string", |
| 94 |
"default": "#ffffff" |
| 95 |
}, |
| 96 |
"gridColor": { |
| 97 |
"type": "string", |
| 98 |
"default": "#f3f4f6" |
| 99 |
}, |
| 100 |
"textColor": { |
| 101 |
"type": "string", |
| 102 |
"default": "#374151" |
| 103 |
}, |
| 104 |
"titleColor": { |
| 105 |
"type": "string", |
| 106 |
"default": "#111827" |
| 107 |
}, |
| 108 |
"series": { |
| 109 |
"type": "array", |
| 110 |
"default": [ |
| 111 |
{ |
| 112 |
"label": "Team A", |
| 113 |
"color": "#6366f1", |
| 114 |
"points": [ |
| 115 |
{ |
| 116 |
"x": 72, |
| 117 |
"y": 68, |
| 118 |
"label": "Alice" |
| 119 |
}, |
| 120 |
{ |
| 121 |
"x": 85, |
| 122 |
"y": 80, |
| 123 |
"label": "Bob" |
| 124 |
}, |
| 125 |
{ |
| 126 |
"x": 61, |
| 127 |
"y": 74, |
| 128 |
"label": "Carol" |
| 129 |
}, |
| 130 |
{ |
| 131 |
"x": 90, |
| 132 |
"y": 88, |
| 133 |
"label": "Dave" |
| 134 |
}, |
| 135 |
{ |
| 136 |
"x": 78, |
| 137 |
"y": 72, |
| 138 |
"label": "Eve" |
| 139 |
} |
| 140 |
] |
| 141 |
}, |
| 142 |
{ |
| 143 |
"label": "Team B", |
| 144 |
"color": "#10b981", |
| 145 |
"points": [ |
| 146 |
{ |
| 147 |
"x": 45, |
| 148 |
"y": 52, |
| 149 |
"label": "Frank" |
| 150 |
}, |
| 151 |
{ |
| 152 |
"x": 58, |
| 153 |
"y": 64, |
| 154 |
"label": "Grace" |
| 155 |
}, |
| 156 |
{ |
| 157 |
"x": 39, |
| 158 |
"y": 45, |
| 159 |
"label": "Henry" |
| 160 |
}, |
| 161 |
{ |
| 162 |
"x": 67, |
| 163 |
"y": 70, |
| 164 |
"label": "Iris" |
| 165 |
}, |
| 166 |
{ |
| 167 |
"x": 53, |
| 168 |
"y": 58, |
| 169 |
"label": "Jack" |
| 170 |
} |
| 171 |
] |
| 172 |
}, |
| 173 |
{ |
| 174 |
"label": "Team C", |
| 175 |
"color": "#f59e0b", |
| 176 |
"points": [ |
| 177 |
{ |
| 178 |
"x": 20, |
| 179 |
"y": 35, |
| 180 |
"label": "Kim" |
| 181 |
}, |
| 182 |
{ |
| 183 |
"x": 32, |
| 184 |
"y": 28, |
| 185 |
"label": "Leo" |
| 186 |
}, |
| 187 |
{ |
| 188 |
"x": 15, |
| 189 |
"y": 42, |
| 190 |
"label": "Mia" |
| 191 |
}, |
| 192 |
{ |
| 193 |
"x": 28, |
| 194 |
"y": 31, |
| 195 |
"label": "Ned" |
| 196 |
}, |
| 197 |
{ |
| 198 |
"x": 40, |
| 199 |
"y": 38, |
| 200 |
"label": "Ora" |
| 201 |
} |
| 202 |
] |
| 203 |
} |
| 204 |
], |
| 205 |
"items": { |
| 206 |
"type": "object" |
| 207 |
} |
| 208 |
}, |
| 209 |
"titleTypo": { |
| 210 |
"type": "object", |
| 211 |
"default": {} |
| 212 |
} |
| 213 |
} |
| 214 |
} |
| 215 |
|