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.

Get Blockenberg

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

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Bubble Chart”, insert it. Category: Charts.
  3. Configure inspector controls that exist on this block. Open Datasets. Set “Label”, “Bubbles (x,y,r per line)”, “Show Title”, “Chart Options — Title”.
  4. 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

ControlWhat the code does
LabelText field in the inspector.
Bubbles (x,y,r per line)Multiline text field in the inspector.
Show TitleOn/off toggle in the inspector. On by default. Saved as `showTitle`.
Chart Options — TitleText 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 GridOn/off toggle in the inspector. On by default. Saved as `showGrid`.
Show LegendOn/off toggle in the inspector. On by default. Saved as `showLegend`.
Legend PositionSelect 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 BackgroundColor control in the inspector. block.json default: #ffffff. Saved as `bgColor`.

What the front-end script actually does

When this is the right block

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

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Bubble Chart from the Gutenberg inserter.

Get Blockenberg