Charts · Gutenberg

Candlestick Chart block for WordPress

OHLC candlestick chart for financial data — shows open, high, low, and close values per period.

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

OHLC candlestick chart for financial data — shows open, high, low, and close values per period.

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

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

How to use Candlestick 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 “Candlestick Chart”, 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 Volume Bars”.
  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: Stock Price — Q4 2024. 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 Volume BarsOn/off toggle in the inspector. On by default. Saved as `showVolume`.
Canvas WidthNumeric range control in the inspector. Range 300–1200. block.json default: 700. Saved as `svgWidth`.
Canvas HeightNumeric range control in the inspector. Range 200–800. block.json default: 380. Saved as `svgHeight`.
Candle WidthNumeric range control in the inspector. Range 4–40. block.json default: 14. Saved as `candleWidth`.
Wick WidthNumeric range control in the inspector. Range 1–6. block.json default: 1. Saved as `wickWidth`.
Left PaddingNumeric range control in the inspector. Range 30–120. block.json default: 70. Saved as `padLeft`.
SVG Label Font SizeNumeric range control in the inspector. Range 8–18. block.json default: 11. Saved as `labelFontSize`.
Bullish (up)Color control in the inspector. block.json default: #10b981. Saved as `bullColor`.
Bearish (down)Color control in the inspector. block.json default: #ef4444. Saved as `bearColor`.
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.
OpenText field in the inspector.
HighText field in the inspector.
LowText field in the inspector.
CloseText field in the inspector.
VolumeText 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 Candlestick Chart block in WordPress?

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

What makes Candlestick Chart different from other Blockenberg blocks?

OHLC candlestick chart for financial data — shows open, high, low, and close values per period. Inspector labels on this block include “Chart Settings — Title”, “Show Title”, “Show Grid”, “Show Volume Bars”.

Is the Candlestick Chart Gutenberg block free?

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

Can I style Candlestick 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, Candles).

Related charts blocks

Get Blockenberg

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

Get Blockenberg