Charts · Gutenberg
Bubble Chart block for WordPress
Interactive bubble chart powered by Chart.js.
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
Interactive bubble chart powered by Chart.js.
Inspector panels on this block: Datasets, Chart Options. Those titles come from index.js, not from a shared template.
Behavior controls: “Legend Position” options: Top, Bottom, Left, Right.
Where to find it
Gutenberg inserter → Charts → search “Bubble Chart” (block name `blockenberg/bubble-chart` in block.json). Style it in the sidebar after insert.
How to use Bubble Chart block for WordPress
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Bubble Chart”, insert it. Category: Charts.
- Configure inspector controls that exist on this block. Open Datasets. Set “Label”, “Bubbles (x,y,r per line)”, “Show Title”, “Chart Options — Title”.
- Check the published page. The view script reads HTML data attributes: data-chart. The block editor preview may not run the same view script.
Inspector controls from this block’s code
| Control | What the code does |
|---|---|
| Label | Text field in the inspector. |
| Bubbles (x,y,r per line) | Multiline text field in the inspector. |
| Show Title | On/off toggle in the inspector. On by default. Saved as `showTitle`. |
| Chart Options — Title | Text field in the inspector. block.json default: Bubble Chart. Saved as `chartTitle`. |
| Chart Height (px) | Numeric range control in the inspector. Range 200–700. block.json default: 400. Saved as `chartHeight`. |
| Fill Opacity % | Numeric range control in the inspector. Range 10–100. block.json default: 50. Saved as `fillAlpha`. |
| Show Grid | On/off toggle in the inspector. On by default. Saved as `showGrid`. |
| Show Legend | On/off toggle in the inspector. On by default. Saved as `showLegend`. |
| Legend Position | Select control; the chosen value is saved on the block. Options: Top; Bottom; Left; Right. block.json default: bottom. Saved as `legendPos`. |
| Border Radius (px) | Numeric range control in the inspector. Range 0–32. block.json default: 12. Saved as `borderRadius`. |
| Title Font Size (px) | Numeric range control in the inspector. Range 12–36. Saved as `titleFontSize`. |
| Legend Font Size (px) | Numeric range control in the inspector. Range 10–24. Saved as `labelFontSize`. |
| Card Background | Color control in the inspector. block.json default: #ffffff. Saved as `bgColor`. |
What the front-end script actually does
- The view script reads HTML data attributes: data-chart.
- Charts are drawn with Chart.js in the browser from values saved on the block.
When this is the right block
- Interactive bubble chart powered by Chart.js — that is the job of Bubble Chart, not a generic content block.
- Use it when you need the editor control labeled “Label”, which exists on this block’s inspector.
- It matches pages about chart, bubble, scatter.
- Inserter grouping: reports, dashboards, and data-heavy pages.
Notes from the implementation
viewScript: this folder’s frontend.js is enqueued on the front end for this block.
FAQ
How do I add the Bubble Chart block in WordPress?
Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Bubble Chart”. It sits under Charts. After insert, open Datasets and set “Label”, “Bubbles (x,y,r per line)”, “Show Title”, “Chart Options — Title”.
Does Bubble Chart need a server or extra plugin?
No. After Blockenberg is active, the view script runs in the browser with the values you saved on the block.
Is the Bubble Chart Gutenberg block free?
Yes. Bubble Chart ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.
Can I style Bubble Chart 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: Datasets, Chart Options).
Related charts blocks
Scatter Chart
Interactive X/Y scatter plot powered by Chart.js. Reveal correlations and distributions in your data.
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.
Doughnut Chart
Pie/doughnut chart with adjustable cutout, center label, and per-slice colors using Chart.js (CDN).
Line Chart
Interactive line chart using Chart.js (loaded from CDN). Supports multiple datasets, fill, tension, and grid styling.
Polar Area Chart
Beautiful polar area chart powered by Chart.js.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Bubble Chart from the Gutenberg inserter.