Charts · Gutenberg

Gauge Chart block for WordPress

SVG semicircular gauge / speedometer that animates on scroll with configurable color zones.

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

SVG semicircular gauge / speedometer that animates on scroll with configurable color zones.

Inspector panels on this block: Value, Color Zones, Zone, Visual, Animation. Those titles come from index.js, not from a shared template.

Where to find it

Gutenberg inserter → Charts → search “Gauge Chart” (block name `blockenberg/gauge-chart` in block.json). Style it in the sidebar after insert.

How to use Gauge 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 “Gauge Chart”, insert it. Category: Charts.
  3. Configure inspector controls that exist on this block. Open Value. Set “Value”, “Label”, “Unit”, “Min Value”.
  4. Check the published page. The view script reads HTML data attributes: data-cx, data-cy, data-duration, data-max, data-min, data-perimeter, data-r, data-show-needle. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
ValueNumeric range control in the inspector. block.json default: 72. Saved as `value`.
LabelText field in the inspector. block.json default: Performance Score. Saved as `label`.
UnitText field in the inspector. block.json default: %. Saved as `unit`.
Min ValueNumeric range control in the inspector. block.json default: 0. Saved as `minValue`.
Max ValueNumeric range control in the inspector. block.json default: 100. Saved as `maxValue`.
From (%)Numeric range control in the inspector. Range 0–99.
To (%)Numeric range control in the inspector. Range 1–100.
Size (px)Numeric range control in the inspector. Range 100–600. block.json default: 260. Saved as `size`.
Stroke WidthNumeric range control in the inspector. Range 4–50. block.json default: 18. Saved as `strokeWidth`.
Show NeedleOn/off toggle in the inspector. Off by default. Saved as `showNeedle`.
Show ValueOn/off toggle in the inspector. On by default. Saved as `showValue`.
Show LabelOn/off toggle in the inspector. On by default. Saved as `showLabel`.
Show Tick MarksOn/off toggle in the inspector. On by default. Saved as `showTicks`.
Tick CountNumeric range control in the inspector. Range 2–20. block.json default: 10. Saved as `tickCount`.
Animate Duration (ms)Numeric range control in the inspector. Range 200–5000. block.json default: 1200. Saved as `animateDuration`.
Track ColorColor control in the inspector. block.json default: #e5e7eb. Saved as `trackColor`.
Value ColorColor control in the inspector. block.json default: #111827. Saved as `valueColor`.
Label ColorColor control in the inspector. block.json default: #6b7280. Saved as `labelColor`.
Needle ColorColor control in the inspector. block.json default: #374151. Saved as `needleColor`.
Colors — BackgroundColor control in the inspector. 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 Gauge Chart block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Gauge Chart”. It sits under Charts. After insert, open Value and set “Value”, “Label”, “Unit”, “Min Value”.

What makes Gauge Chart different from other Blockenberg blocks?

SVG semicircular gauge / speedometer that animates on scroll with configurable color zones. Inspector labels on this block include “Value”, “Label”, “Unit”, “Min Value”.

Is the Gauge Chart Gutenberg block free?

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

Can I style Gauge 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: Value, Color Zones, Zone, Visual).

Related charts blocks

Get Blockenberg

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

Get Blockenberg