| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"name": "blockenberg/marimekko-chart", |
| 4 |
"title": "Marimekko Chart", |
| 5 |
"category": "bkbg-charts", |
| 6 |
"icon": "layout", |
| 7 |
"description": "Mosaic / Mekko chart — column widths represent segment size, inner stacks show composition. Ideal for market share visualisation.", |
| 8 |
"textdomain": "blockenberg", |
| 9 |
"editorScript": "bkbg-marimekko-chart-editor", |
| 10 |
"style": "bkbg-marimekko-chart-style", |
| 11 |
"attributes": { |
| 12 |
"title": { |
| 13 |
"type": "string", |
| 14 |
"default": "Market Share by Region & Segment" |
| 15 |
}, |
| 16 |
"showTitle": { |
| 17 |
"type": "boolean", |
| 18 |
"default": true |
| 19 |
}, |
| 20 |
"svgWidth": { |
| 21 |
"type": "number", |
| 22 |
"default": 700 |
| 23 |
}, |
| 24 |
"svgHeight": { |
| 25 |
"type": "number", |
| 26 |
"default": 400 |
| 27 |
}, |
| 28 |
"padTop": { |
| 29 |
"type": "number", |
| 30 |
"default": 30 |
| 31 |
}, |
| 32 |
"padLeft": { |
| 33 |
"type": "number", |
| 34 |
"default": 50 |
| 35 |
}, |
| 36 |
"padRight": { |
| 37 |
"type": "number", |
| 38 |
"default": 20 |
| 39 |
}, |
| 40 |
"padBottom": { |
| 41 |
"type": "number", |
| 42 |
"default": 60 |
| 43 |
}, |
| 44 |
"colGap": { |
| 45 |
"type": "number", |
| 46 |
"default": 3 |
| 47 |
}, |
| 48 |
"showValues": { |
| 49 |
"type": "boolean", |
| 50 |
"default": true |
| 51 |
}, |
| 52 |
"showLegend": { |
| 53 |
"type": "boolean", |
| 54 |
"default": true |
| 55 |
}, |
| 56 |
"showColLabels": { |
| 57 |
"type": "boolean", |
| 58 |
"default": true |
| 59 |
}, |
| 60 |
"showYAxis": { |
| 61 |
"type": "boolean", |
| 62 |
"default": true |
| 63 |
}, |
| 64 |
"labelFontSize": { |
| 65 |
"type": "number", |
| 66 |
"default": 11 |
| 67 |
}, |
| 68 |
"valueFontSize": { |
| 69 |
"type": "number", |
| 70 |
"default": 10 |
| 71 |
}, |
| 72 |
"titleTypo": { |
| 73 |
"type": "object", |
| 74 |
"default": {} |
| 75 |
}, |
| 76 |
"bgColor": { |
| 77 |
"type": "string", |
| 78 |
"default": "#ffffff" |
| 79 |
}, |
| 80 |
"gridColor": { |
| 81 |
"type": "string", |
| 82 |
"default": "#f3f4f6" |
| 83 |
}, |
| 84 |
"textColor": { |
| 85 |
"type": "string", |
| 86 |
"default": "#374151" |
| 87 |
}, |
| 88 |
"titleColor": { |
| 89 |
"type": "string", |
| 90 |
"default": "#111827" |
| 91 |
}, |
| 92 |
"segmentColors": { |
| 93 |
"type": "array", |
| 94 |
"default": [ |
| 95 |
"#6366f1", |
| 96 |
"#10b981", |
| 97 |
"#f59e0b", |
| 98 |
"#ef4444", |
| 99 |
"#8b5cf6", |
| 100 |
"#ec4899" |
| 101 |
], |
| 102 |
"items": { |
| 103 |
"type": "string" |
| 104 |
} |
| 105 |
}, |
| 106 |
"columns": { |
| 107 |
"type": "array", |
| 108 |
"default": [ |
| 109 |
{ |
| 110 |
"label": "North America", |
| 111 |
"size": 40, |
| 112 |
"segments": [ |
| 113 |
{ |
| 114 |
"label": "Enterprise", |
| 115 |
"value": 50 |
| 116 |
}, |
| 117 |
{ |
| 118 |
"label": "SMB", |
| 119 |
"value": 30 |
| 120 |
}, |
| 121 |
{ |
| 122 |
"label": "Consumer", |
| 123 |
"value": 20 |
| 124 |
} |
| 125 |
] |
| 126 |
}, |
| 127 |
{ |
| 128 |
"label": "Europe", |
| 129 |
"size": 30, |
| 130 |
"segments": [ |
| 131 |
{ |
| 132 |
"label": "Enterprise", |
| 133 |
"value": 40 |
| 134 |
}, |
| 135 |
{ |
| 136 |
"label": "SMB", |
| 137 |
"value": 35 |
| 138 |
}, |
| 139 |
{ |
| 140 |
"label": "Consumer", |
| 141 |
"value": 25 |
| 142 |
} |
| 143 |
] |
| 144 |
}, |
| 145 |
{ |
| 146 |
"label": "Asia-Pacific", |
| 147 |
"size": 20, |
| 148 |
"segments": [ |
| 149 |
{ |
| 150 |
"label": "Enterprise", |
| 151 |
"value": 30 |
| 152 |
}, |
| 153 |
{ |
| 154 |
"label": "SMB", |
| 155 |
"value": 40 |
| 156 |
}, |
| 157 |
{ |
| 158 |
"label": "Consumer", |
| 159 |
"value": 30 |
| 160 |
} |
| 161 |
] |
| 162 |
}, |
| 163 |
{ |
| 164 |
"label": "Rest of World", |
| 165 |
"size": 10, |
| 166 |
"segments": [ |
| 167 |
{ |
| 168 |
"label": "Enterprise", |
| 169 |
"value": 20 |
| 170 |
}, |
| 171 |
{ |
| 172 |
"label": "SMB", |
| 173 |
"value": 45 |
| 174 |
}, |
| 175 |
{ |
| 176 |
"label": "Consumer", |
| 177 |
"value": 35 |
| 178 |
} |
| 179 |
] |
| 180 |
} |
| 181 |
], |
| 182 |
"items": { |
| 183 |
"type": "object" |
| 184 |
} |
| 185 |
} |
| 186 |
} |
| 187 |
} |
| 188 |
|