Charts · Gutenberg
Word Frequency block for WordPress
Ranked horizontal bar chart for word frequency, survey results, language rankings, or any comparative data set.
Get Blockenberg
Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.
What it actually does
Ranked horizontal bar chart for word frequency, survey results, language rankings, or any comparative data set.
Inspector panels on this block: Chart Settings, Appearance, Data. Those titles come from index.js, not from a shared template.
Word Frequency has no render.php and no frontend.js. The saved Gutenberg HTML is what visitors see, plus Blockenberg layout/typography CSS.
Where to find it
Gutenberg inserter → Charts → search “Word Frequency” (block name `blockenberg/word-frequency` in block.json). Style it in the sidebar after insert.
How to use Word Frequency block for WordPress
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Word Frequency”, insert it. Category: Charts.
- Configure inspector controls that exist on this block. Open Chart Settings. Set “Chart Settings — Title”, “Show Title”, “Show Values”, “Show As Percent”.
- Publish. Save the page. Output is the saved block HTML; typography/colors follow Blockenberg shared panels.
Inspector controls from this block’s code
| Control | What the code does |
|---|---|
| Chart Settings — Title | Text field in the inspector. block.json default: Most Popular Languages 2024. Saved as `title`. |
| Show Title | On/off toggle in the inspector. On by default. Saved as `showTitle`. |
| Show Values | On/off toggle in the inspector. On by default. Saved as `showValues`. |
| Show As Percent | On/off toggle in the inspector. Off by default. Saved as `showPercent`. |
| Show Rank Numbers | On/off toggle in the inspector. On by default. Saved as `showRank`. |
| Show Labels | On/off toggle in the inspector. On by default. Saved as `showLabels`. |
| Sort High → Low | On/off toggle in the inspector. On by default. Saved as `sortDesc`. |
| Bar Height | Numeric range control in the inspector. Range 16–80. block.json default: 34. Saved as `barHeight`. |
| Row Gap | Numeric range control in the inspector. Range 0–30. block.json default: 8. Saved as `barGap`. |
| Bar Radius | Numeric range control in the inspector. Range 0–20. block.json default: 4. Saved as `barRadius`. |
| Label Column Width | Numeric range control in the inspector. Range 60–300. block.json default: 130. Saved as `labelWidth`. |
| Colors — Background | Color control in the inspector. block.json default: #ffffff. Saved as `bgColor`. |
| Track Color | Color control in the inspector. block.json default: #f3f4f6. Saved as `trackColor`. |
| Title Color | Color control in the inspector. block.json default: #111827. Saved as `titleColor`. |
| Text Color | Color control in the inspector. block.json default: #374151. Saved as `textColor`. |
| Label | Text field in the inspector. |
| Value / Count | Numeric range control in the inspector. Range 0–10000. |
When this is the right block
- Ranked horizontal bar chart for word frequency, survey results, language rankings, or any comparative data set — that is the job of Word Frequency, not a generic content block.
- Use it when you need the editor control labeled “Chart Settings — Title”, which exists on this block’s inspector.
- It matches pages about word frequency, bar chart, ranking.
- Inserter grouping: reports, dashboards, and data-heavy pages.
Notes from the implementation
Static block: markup is saved in post content; no PHP render callback in this folder.
FAQ
How do I add the Word Frequency block in WordPress?
Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Word Frequency”. It sits under Charts. After insert, open Chart Settings and set “Chart Settings — Title”, “Show Title”, “Show Values”, “Show As Percent”.
What makes Word Frequency different from other Blockenberg blocks?
Ranked horizontal bar chart for word frequency, survey results, language rankings, or any comparative data set. Inspector labels on this block include “Chart Settings — Title”, “Show Title”, “Show Values”, “Show As Percent”.
Is the Word Frequency Gutenberg block free?
Yes. Word Frequency ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.
Can I style Word Frequency to match my theme?
Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Chart Settings, Appearance, Data).
Related charts blocks
Lollipop Chart
Elegant horizontal lollipop chart — thin stems with value circles at the end. A clean alternative to bar charts for rankings, scores, and comparisons.
Pie Chart
SVG-based pie chart with labelled wedge segments, percentage display, and an optional legend. Renders inline without external libraries — no doughnut/ring, true pie slices with mid-wedge labels and hover tooltips.
Area Chart
Smooth filled area chart with multiple datasets, gradient fills, and animation using Chart.js (CDN). Great for showing trends over time.
Bar Chart
Vertical or horizontal bar chart with multiple datasets using Chart.js (CDN). Supports stacked, border radius, and custom colors.
Box Plot
Box-and-whisker statistical chart showing min, Q1, median, Q3, max, mean, and outliers for multiple data series.
Bubble Chart
Interactive bubble chart powered by Chart.js.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Word Frequency from the Gutenberg inserter.