Charts · Gutenberg

Sunburst Chart block for WordPress

A two-ring radial hierarchy chart — the inner ring shows main segments and the outer ring shows their sub-categories.

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

A two-ring radial hierarchy chart — the inner ring shows main segments and the outer ring shows their sub-categories.

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

Behavior controls: “Label Font Weight” options: 400 Regular, 500 Medium, 600 Semi-bold, 700 Bold.

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

How to use Sunburst 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 “Sunburst Chart”, insert it. Category: Charts.
  3. Configure inspector controls that exist on this block. Open Chart Settings. Set “Chart Settings — Title”, “Show Title”, “Show Labels”, “Show Values”.
  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: Revenue by Region & Channel. Saved as `title`.
Show TitleOn/off toggle in the inspector. On by default. Saved as `showTitle`.
Show LabelsOn/off toggle in the inspector. On by default. Saved as `showLabels`.
Show ValuesOn/off toggle in the inspector. On by default. Saved as `showValues`.
Show LegendOn/off toggle in the inspector. On by default. Saved as `showLegend`.
Canvas Size (px)Numeric range control in the inspector. Range 300–800. block.json default: 520. Saved as `svgSize`.
Donut Hole RadiusNumeric range control in the inspector. Range 20–200. block.json default: 80. Saved as `innerRadius`.
Inner Ring RadiusNumeric range control in the inspector. Range 60–350. block.json default: 180. Saved as `midRadius`.
Outer Ring RadiusNumeric range control in the inspector. Range 80–400. block.json default: 240. Saved as `outerRadius`.
Label Font SizeNumeric range control in the inspector. Range 7–20. block.json default: 11. Saved as `labelFontSize`.
Value Font SizeNumeric range control in the inspector. Range 6–16. block.json default: 10. Saved as `valueFontSize`.
Label Font WeightSelect control; the chosen value is saved on the block. Options: 400 Regular; 500 Medium; 600 Semi-bold; 700 Bold. block.json default: 400. Saved as `labelFontWeight`.
Label Line HeightNumeric range control in the inspector. Range 1.0–2.5. block.json default: 1.4. Saved as `labelLineHeight`.
Colors — BackgroundColor control in the inspector. block.json default: #ffffff. Saved as `bgColor`.
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–9999.

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

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

What makes Sunburst Chart different from other Blockenberg blocks?

A two-ring radial hierarchy chart — the inner ring shows main segments and the outer ring shows their sub-categories. Inspector labels on this block include “Chart Settings — Title”, “Show Title”, “Show Labels”, “Show Values”.

Is the Sunburst Chart Gutenberg block free?

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

Can I style Sunburst 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, Layout, Segments).

Related charts blocks

Get Blockenberg

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

Get Blockenberg