Charts · Gutenberg

Scatter Plot block for WordPress

XY scatter plot with multiple labelled series and optional trendline display.

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

XY scatter plot with multiple labelled series and optional trendline display.

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

Scatter Plot 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 “Scatter Plot” (block name `blockenberg/scatter-plot` in block.json). Style it in the sidebar after insert.

How to use Scatter Plot block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Scatter Plot”, insert it. Category: Charts.
  3. Configure inspector controls that exist on this block. Open Chart Settings. Set “Chart Settings — Title”, “Show Title”, “Show Grid”, “Show Legend”.
  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: Performance vs Satisfaction. Saved as `title`.
Show TitleOn/off toggle in the inspector. On by default. Saved as `showTitle`.
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`.
Show Point LabelsOn/off toggle in the inspector. Off by default. Saved as `showLabels`.
X Axis LabelText field in the inspector. block.json default: Performance Score. Saved as `xAxisLabel`.
Y Axis LabelText field in the inspector. block.json default: Satisfaction Index. Saved as `yAxisLabel`.
X MinNumeric range control in the inspector. Range -10000–10000. block.json default: 0. Saved as `xMin`.
X MaxNumeric range control in the inspector. Range -10000–10000. block.json default: 100. Saved as `xMax`.
Y MinNumeric range control in the inspector. Range -10000–10000. block.json default: 0. Saved as `yMin`.
Y MaxNumeric range control in the inspector. Range -10000–10000. block.json default: 100. Saved as `yMax`.
Canvas WidthNumeric range control in the inspector. Range 300–1200. block.json default: 680. Saved as `svgWidth`.
Canvas HeightNumeric range control in the inspector. Range 160–700. block.json default: 380. Saved as `svgHeight`.
Dot RadiusNumeric range control in the inspector. Range 2–20. block.json default: 6. Saved as `dotRadius`.
Left PaddingNumeric range control in the inspector. Range 20–120. block.json default: 60. Saved as `padLeft`.
Bottom PaddingNumeric range control in the inspector. Range 30–120. block.json default: 60. Saved as `padBottom`.
Label Font SizeNumeric range control in the inspector. Range 8–20. block.json default: 12. Saved as `labelFontSize`.
Label Font WeightNumeric range control in the inspector. Range 300–900. block.json default: 400. Saved as `labelFontWeight`.
Colors — BackgroundColor control in the inspector. block.json default: #ffffff. Saved as `bgColor`.
GridColor control in the inspector. block.json default: #f3f4f6. Saved as `gridColor`.
Colors — TitleColor control in the inspector. block.json default: #111827. Saved as `titleColor`.
Text/AxesColor control in the inspector. block.json default: #374151. Saved as `textColor`.
LabelText field in the inspector.
Points (x, y, Label)Multiline text field in the inspector.

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 Scatter Plot block in WordPress?

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

What makes Scatter Plot different from other Blockenberg blocks?

XY scatter plot with multiple labelled series and optional trendline display. Inspector labels on this block include “Chart Settings — Title”, “Show Title”, “Show Grid”, “Show Legend”.

Is the Scatter Plot Gutenberg block free?

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

Can I style Scatter Plot 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, Axis Range, Layout, Series).

Related charts blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Scatter Plot from the Gutenberg inserter.

Get Blockenberg