PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.7
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.7
2.0.13 2.0.12 2.0.11 2.0.10 2.0.9 trunk 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8
blockenberg / blocks / doughnut-chart / block.json

block.json in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.7, at blocks/doughnut-chart/block.json

108 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "apiVersion": 3,
3 "$schema": "https://schemas.wp.org/trunk/block.json",
4 "name": "blockenberg/doughnut-chart",
5 "title": "Doughnut Chart",
6 "category": "bkbg-charts",
7 "icon": "chart-pie",
8 "description": "Pie/doughnut chart with adjustable cutout, center label, and per-slice colors using Chart.js (CDN).",
9 "keywords": [
10 "chart",
11 "doughnut",
12 "pie",
13 "donut",
14 "data",
15 "visualization"
16 ],
17 "textdomain": "blockenberg",
18 "editorScript": "bkbg-doughnut-chart-editor",
19 "editorStyle": "bkbg-doughnut-chart-style",
20 "style": "bkbg-doughnut-chart-style",
21 "viewScript": "bkbg-doughnut-chart-frontend",
22 "supports": {
23 "html": false,
24 "anchor": true,
25 "className": true,
26 "align": []
27 },
28 "attributes": {
29 "slices": {
30 "type": "array",
31 "default": [
32 {
33 "label": "Product A",
34 "value": 35,
35 "color": "#6c3fb5"
36 },
37 {
38 "label": "Product B",
39 "value": 25,
40 "color": "#e040fb"
41 },
42 {
43 "label": "Product C",
44 "value": 20,
45 "color": "#f5a623"
46 },
47 {
48 "label": "Product D",
49 "value": 20,
50 "color": "#22c55e"
51 }
52 ]
53 },
54 "cutout": {
55 "type": "number",
56 "default": 60
57 },
58 "centerLabel": {
59 "type": "string",
60 "default": ""
61 },
62 "centerSubLabel": {
63 "type": "string",
64 "default": ""
65 },
66 "size": {
67 "type": "number",
68 "default": 300
69 },
70 "showLegend": {
71 "type": "boolean",
72 "default": true
73 },
74 "legendPos": {
75 "type": "string",
76 "default": "bottom"
77 },
78 "bgColor": {
79 "type": "string",
80 "default": "#ffffff"
81 },
82 "borderRadius": {
83 "type": "number",
84 "default": 12
85 },
86 "title": {
87 "type": "string",
88 "default": ""
89 },
90 "titleFontSize": {
91 "type": "number",
92 "default": 18
93 },
94 "titleFontWeight": {
95 "type": "string",
96 "default": "700"
97 },
98 "titleLineHeight": {
99 "type": "number",
100 "default": 1.2
101 },
102 "typoTitle": {
103 "type": "object",
104 "default": {}
105 }
106 }
107 }
108