Charts · Gutenberg
Stacked Area Chart block for WordPress
Area chart with multiple series stacked cumulatively.
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.
What it actually does
Area chart with multiple series stacked cumulatively.
Inspector panels on this block: Chart Settings, Layout, X-Axis Labels, Series. 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.
Stacked Area 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 “Stacked Area Chart” (block name `blockenberg/stacked-area` in block.json). Style it in the sidebar after insert.
How to use Stacked Area Chart block for WordPress
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Stacked Area Chart”, insert it. Category: Charts.
- Configure inspector controls that exist on this block. Open Chart Settings. Set “Chart Settings — Title”, “Show Title”, “Show Grid Lines”, “Show Legend”.
- Publish. Save the page. Output is the saved block HTML; typography/colors follow Blockenberg shared panels.
Inspector controls from this block’s code
| Control | What the code does |
|---|---|
| Chart Settings — Title | Text field in the inspector. block.json default: Monthly Active Users by Platform. Saved as `title`. |
| Show Title | On/off toggle in the inspector. On by default. Saved as `showTitle`. |
| Show Grid Lines | On/off toggle in the inspector. On by default. Saved as `showGridLines`. |
| Show Legend | On/off toggle in the inspector. On by default. Saved as `showLegend`. |
| Show Dots | On/off toggle in the inspector. Off by default. Saved as `showDots`. |
| Show Values | On/off toggle in the inspector. Off by default. Saved as `showValues`. |
| Fill Opacity % | Numeric range control in the inspector. Range 10–100. block.json default: 80. Saved as `fillOpacity`. |
| Canvas Width | Numeric range control in the inspector. Range 300–1200. block.json default: 700. Saved as `svgWidth`. |
| Canvas Height | Numeric range control in the inspector. Range 160–700. block.json default: 360. Saved as `svgHeight`. |
| Left Padding (Y-axis) | Numeric range control in the inspector. Range 20–120. block.json default: 60. Saved as `padLeft`. |
| Bottom Padding | Numeric range control in the inspector. Range 20–100. block.json default: 50. Saved as `padBottom`. |
| Label Font Size | Numeric range control in the inspector. Range 8–20. block.json default: 12. Saved as `labelFontSize`. |
| Value Font Size | Numeric range control in the inspector. Range 7–16. block.json default: 10. Saved as `valueFontSize`. |
| Label Font Weight | Select 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 Height | Numeric range control in the inspector. Range 1.0–2.5. block.json default: 1.4. Saved as `labelLineHeight`. |
| Colors — Background | Color control in the inspector. block.json default: #ffffff. Saved as `bgColor`. |
| Grid | Color control in the inspector. block.json default: #f3f4f6. Saved as `gridColor`. |
| Colors — Title | Color control in the inspector. block.json default: #111827. Saved as `titleColor`. |
| Text / Axes | Color control in the inspector. block.json default: #374151. Saved as `textColor`. |
| Labels (one per line) | Multiline text field in the inspector. Saved as `xLabels`. |
| Label | Text field in the inspector. |
| Values (comma-separated) | Multiline text field in the inspector. |
When this is the right block
- Area chart with multiple series stacked cumulatively — that is the job of Stacked Area Chart, not a generic content block.
- Use it when you need the editor control labeled “Chart Settings — Title”, which exists on this block’s inspector.
- Inserter grouping: reports, dashboards, and data-heavy pages.
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 Stacked Area Chart block in WordPress?
Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Stacked Area Chart”. It sits under Charts. After insert, open Chart Settings and set “Chart Settings — Title”, “Show Title”, “Show Grid Lines”, “Show Legend”.
What makes Stacked Area Chart different from other Blockenberg blocks?
Area chart with multiple series stacked cumulatively. Inspector labels on this block include “Chart Settings — Title”, “Show Title”, “Show Grid Lines”, “Show Legend”.
Is the Stacked Area Chart Gutenberg block free?
Yes. Stacked Area Chart ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.
Can I style Stacked Area 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, X-Axis Labels, Series).
Related charts blocks
Area Chart
Smooth filled area chart with multiple datasets, gradient fills, and animation using Chart.js (CDN). Great for showing trends over time.
Bar Chart
Vertical or horizontal bar chart with multiple datasets using Chart.js (CDN). Supports stacked, border radius, and custom colors.
Box Plot
Box-and-whisker statistical chart showing min, Q1, median, Q3, max, mean, and outliers for multiple data series.
Bubble Chart
Interactive bubble chart powered by Chart.js.
Bullet Chart
Stephen Few's bullet chart — shows actual performance against a target, with background bands for Poor / Satisfactory / Good ranges.
Bump Chart
Ranking chart that shows how positions change over time — each series is a curved line with rank labels at each column.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Stacked Area Chart from the Gutenberg inserter.