Charts · Gutenberg

Gantt Chart block for WordPress

Project timeline Gantt chart with tasks, phases, milestones, and a today indicator. Rendered in pure CSS — no library required.

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

Project timeline Gantt chart with tasks, phases, milestones, and a today indicator. Rendered in pure CSS — no library required.

Inspector panels on this block: Tasks, Display Options, Dimensions. Those titles come from index.js, not from a shared template.

Behavior controls: “View” options: Monthly, Weekly.

Where to find it

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

How to use Gantt 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 “Gantt Chart”, insert it. Category: Charts.
  3. Configure inspector controls that exist on this block. Open Tasks. Set “Task Name”, “Phase / Group”, “Start Date”, “End Date”.
  4. Check the published page. The view script reads HTML data attributes: data-opts, data-rendered. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Task NameText field in the inspector.
Phase / GroupText field in the inspector.
Start DateText field in the inspector.
End DateText field in the inspector.
Progress %Numeric range control in the inspector. Range 0–100.
Milestone (diamond marker)On/off toggle in the inspector.
Assignee (optional)Text field in the inspector.
ViewSelect control; the chosen value is saved on the block. Options: Monthly; Weekly. block.json default: month. Saved as `view`.
Show Phase GroupsOn/off toggle in the inspector. On by default. Saved as `showPhases`.
Show MilestonesOn/off toggle in the inspector. On by default. Saved as `showMilestones`.
Show Progress FillOn/off toggle in the inspector. On by default. Saved as `showProgress`.
Show AssigneeOn/off toggle in the inspector. Off by default. Saved as `showAssignee`.
Highlight TodayOn/off toggle in the inspector. On by default. Saved as `highlightToday`.
Show LegendOn/off toggle in the inspector. On by default. Saved as `showLegend`.
Row Height (px)Numeric range control in the inspector. Range 28–80. block.json default: 40. Saved as `rowHeight`.
Label Column Width (px)Numeric range control in the inspector. Range 100–400. block.json default: 200. Saved as `labelWidth`.
Task Bar RadiusNumeric range control in the inspector. Range 0–20. block.json default: 4. Saved as `taskRadius`.
Max Width (0 = full)Numeric range control in the inspector. Range 0–1400. block.json default: 0. Saved as `maxWidth`.
Padding TopNumeric range control in the inspector. Range 0–120. block.json default: 0. Saved as `paddingTop`.
Padding BottomNumeric range control in the inspector. Range 0–120. block.json default: 0. Saved as `paddingBottom`.
Section BackgroundColor control in the inspector. Saved as `bgColor`.
Header / Phase BackgroundColor control in the inspector. block.json default: #f3f4f6. Saved as `headerBg`.
Row BackgroundColor control in the inspector. block.json default: #ffffff. Saved as `rowBg`.
Alternating Row BackgroundColor control in the inspector. block.json default: #f9fafb. Saved as `rowAltBg`.
Grid LinesColor control in the inspector. block.json default: #e5e7eb. Saved as `gridColor`.
Header TextColor control in the inspector. block.json default: #374151. Saved as `headerColor`.
Task Label ColorColor control in the inspector. block.json default: #111827. Saved as `labelColor`.
Phase Label ColorColor control in the inspector. block.json default: #6b7280. Saved as `phaseColor`.
Today IndicatorColor control in the inspector. block.json default: #ef4444. Saved as `todayLine`.
Milestone ColorColor control in the inspector. block.json default: #f59e0b. Saved as `milestoneColor`.

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

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Gantt Chart”. It sits under Charts. After insert, open Tasks and set “Task Name”, “Phase / Group”, “Start Date”, “End Date”.

What makes Gantt Chart different from other Blockenberg blocks?

Project timeline Gantt chart with tasks, phases, milestones, and a today indicator. Rendered in pure CSS — no library required. Inspector labels on this block include “Task Name”, “Phase / Group”, “Start Date”, “End Date”.

Is the Gantt Chart Gutenberg block free?

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

Can I style Gantt 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: Tasks, Display Options, Dimensions).

Related charts blocks

Get Blockenberg

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

Get Blockenberg