| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "blockenberg/word-frequency", |
| 5 |
"version": "1.0.0", |
| 6 |
"title": "Word Frequency", |
| 7 |
"category": "bkbg-charts", |
| 8 |
"icon": "chart-bar", |
| 9 |
"description": "Ranked horizontal bar chart for word frequency, survey results, language rankings, or any comparative data set.", |
| 10 |
"keywords": [ |
| 11 |
"word frequency", |
| 12 |
"bar chart", |
| 13 |
"ranking", |
| 14 |
"horizontal bars", |
| 15 |
"statistics" |
| 16 |
], |
| 17 |
"textdomain": "blockenberg", |
| 18 |
"editorScript": "bkbg-word-frequency-editor", |
| 19 |
"style": "bkbg-word-frequency-style", |
| 20 |
"supports": { |
| 21 |
"html": false, |
| 22 |
"align": [ |
| 23 |
"wide", |
| 24 |
"full" |
| 25 |
] |
| 26 |
}, |
| 27 |
"attributes": { |
| 28 |
"title": { |
| 29 |
"type": "string", |
| 30 |
"default": "Most Popular Languages 2024" |
| 31 |
}, |
| 32 |
"showTitle": { |
| 33 |
"type": "boolean", |
| 34 |
"default": true |
| 35 |
}, |
| 36 |
"showValues": { |
| 37 |
"type": "boolean", |
| 38 |
"default": true |
| 39 |
}, |
| 40 |
"showPercent": { |
| 41 |
"type": "boolean", |
| 42 |
"default": false |
| 43 |
}, |
| 44 |
"showRank": { |
| 45 |
"type": "boolean", |
| 46 |
"default": true |
| 47 |
}, |
| 48 |
"showLabels": { |
| 49 |
"type": "boolean", |
| 50 |
"default": true |
| 51 |
}, |
| 52 |
"sortDesc": { |
| 53 |
"type": "boolean", |
| 54 |
"default": true |
| 55 |
}, |
| 56 |
"barHeight": { |
| 57 |
"type": "number", |
| 58 |
"default": 34 |
| 59 |
}, |
| 60 |
"barGap": { |
| 61 |
"type": "number", |
| 62 |
"default": 8 |
| 63 |
}, |
| 64 |
"barRadius": { |
| 65 |
"type": "number", |
| 66 |
"default": 4 |
| 67 |
}, |
| 68 |
"labelWidth": { |
| 69 |
"type": "number", |
| 70 |
"default": 130 |
| 71 |
}, |
| 72 |
"labelFontSize": { |
| 73 |
"type": "number", |
| 74 |
"default": 14 |
| 75 |
}, |
| 76 |
"valueFontSize": { |
| 77 |
"type": "number", |
| 78 |
"default": 13 |
| 79 |
}, |
| 80 |
"titleTypo": { |
| 81 |
"type": "object", |
| 82 |
"default": {} |
| 83 |
}, |
| 84 |
"labelTypo": { |
| 85 |
"type": "object", |
| 86 |
"default": {} |
| 87 |
}, |
| 88 |
"valueTypo": { |
| 89 |
"type": "object", |
| 90 |
"default": {} |
| 91 |
}, |
| 92 |
"bgColor": { |
| 93 |
"type": "string", |
| 94 |
"default": "#ffffff" |
| 95 |
}, |
| 96 |
"titleColor": { |
| 97 |
"type": "string", |
| 98 |
"default": "#111827" |
| 99 |
}, |
| 100 |
"textColor": { |
| 101 |
"type": "string", |
| 102 |
"default": "#374151" |
| 103 |
}, |
| 104 |
"trackColor": { |
| 105 |
"type": "string", |
| 106 |
"default": "#f3f4f6" |
| 107 |
}, |
| 108 |
"words": { |
| 109 |
"type": "array", |
| 110 |
"default": [ |
| 111 |
{ |
| 112 |
"word": "JavaScript", |
| 113 |
"count": 63, |
| 114 |
"color": "#f7df1e" |
| 115 |
}, |
| 116 |
{ |
| 117 |
"word": "Python", |
| 118 |
"count": 51, |
| 119 |
"color": "#3776ab" |
| 120 |
}, |
| 121 |
{ |
| 122 |
"word": "TypeScript", |
| 123 |
"count": 44, |
| 124 |
"color": "#3178c6" |
| 125 |
}, |
| 126 |
{ |
| 127 |
"word": "Rust", |
| 128 |
"count": 38, |
| 129 |
"color": "#ce422b" |
| 130 |
}, |
| 131 |
{ |
| 132 |
"word": "Go", |
| 133 |
"count": 33, |
| 134 |
"color": "#00acd7" |
| 135 |
}, |
| 136 |
{ |
| 137 |
"word": "Java", |
| 138 |
"count": 30, |
| 139 |
"color": "#f89820" |
| 140 |
}, |
| 141 |
{ |
| 142 |
"word": "C#", |
| 143 |
"count": 27, |
| 144 |
"color": "#178600" |
| 145 |
}, |
| 146 |
{ |
| 147 |
"word": "PHP", |
| 148 |
"count": 22, |
| 149 |
"color": "#8892be" |
| 150 |
}, |
| 151 |
{ |
| 152 |
"word": "C++", |
| 153 |
"count": 19, |
| 154 |
"color": "#f34b7d" |
| 155 |
}, |
| 156 |
{ |
| 157 |
"word": "Kotlin", |
| 158 |
"count": 14, |
| 159 |
"color": "#7f52ff" |
| 160 |
} |
| 161 |
] |
| 162 |
} |
| 163 |
} |
| 164 |
} |
| 165 |
|