Charts · Gutenberg

Waffle Chart block for WordPress

Proportional 10×10 grid where each cell represents 1%. An intuitive and visually engaging alternative to pie charts for showing progress and part-to-whole relationships.

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

Proportional 10×10 grid where each cell represents 1%. An intuitive and visually engaging alternative to pie charts for showing progress and part-to-whole relationships.

Inspector panels on this block: Chart Settings, Grid Appearance, Segments. Those titles come from index.js, not from a shared template.

Waffle Chart 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 “Waffle Chart” (block name `blockenberg/waffle-chart` in block.json). Style it in the sidebar after insert.

How to use Waffle 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 “Waffle Chart”, insert it. Category: Charts.
  3. Configure inspector controls that exist on this block. Open Chart Settings. Set “Chart Settings — Title”, “Show Title”, “Show Legend”, “Show as Percent”.
  4. Publish. Save the page. Output is the saved block HTML; typography/colors follow Blockenberg shared panels.

Inspector controls from this block’s code

ControlWhat the code does
Chart Settings — TitleText field in the inspector. block.json default: Budget Allocation. Saved as `title`.
Show TitleOn/off toggle in the inspector. On by default. Saved as `showTitle`.
Show LegendOn/off toggle in the inspector. On by default. Saved as `showLegend`.
Show as PercentOn/off toggle in the inspector. On by default. Saved as `showPercent`.
Show Raw ValuesOn/off toggle in the inspector. Off by default. Saved as `showValues`.
Cell Gap (px)Numeric range control in the inspector. Range 0–16. block.json default: 3. Saved as `cellGap`.
Cell Radius (px)Numeric range control in the inspector. Range 0–20. block.json default: 4. Saved as `cellRadius`.
Cell Size (px)Numeric range control in the inspector. Range 14–60. block.json default: 28. Saved as `cellSize`.
Colors — BackgroundColor control in the inspector. block.json default: #ffffff. Saved as `bgColor`.
Empty CellColor control in the inspector. block.json default: #f3f4f6. Saved as `emptyColor`.
Title ColorColor control in the inspector. block.json default: #111827. Saved as `titleColor`.
Text ColorColor control in the inspector. block.json default: #374151. Saved as `textColor`.
LabelText field in the inspector.
ValueNumeric range control in the inspector. Range 0–10000.

When this is the right block

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 Waffle Chart block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Waffle Chart”. It sits under Charts. After insert, open Chart Settings and set “Chart Settings — Title”, “Show Title”, “Show Legend”, “Show as Percent”.

What makes Waffle Chart different from other Blockenberg blocks?

Proportional 10×10 grid where each cell represents 1%. An intuitive and visually engaging alternative to pie charts for showing progress and part-to-whole relationships. Inspector labels on this block include “Chart Settings — Title”, “Show Title”, “Show Legend”, “Show as Percent”.

Is the Waffle Chart Gutenberg block free?

Yes. Waffle Chart ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Waffle 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: Chart Settings, Grid Appearance, Segments).

Related charts blocks

Get Blockenberg

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

Get Blockenberg