Ganttable

approvedunreviewed

by jrayaz

Gantt chart from a Markdown table: WBS rollups, dependencies, critical path, drag to edit, print preview and SVG or PNG export. Works for project plans and study plans.

★ 1 stars↓ 81 downloadsUpdated 20d agoMIT

Ganttable

Turn a Markdown table into a printable Gantt chart. The table in your note is the plan, and the chart is a view of it.

Version 0.5.0 (beta). Chart with links, critical path, baseline, print preview, SVG and PNG export, and drag-to-edit with undo. Tested on desktop and in Obsidian's mobile mode; please report anything odd on a real phone.

Ganttable in use: zoom, colour, group, critical path, drag to edit, undo, settings, theme and print preview

Study plan chart

Group by areaCritical pathPrint preview
Group by areaCritical pathPrint preview

How it works

  1. Put a table in a note. Ganttable looks for the columns Task and Start.
  2. Add a ```gantt code block below it. It shows a summary card with an Open gantt button.
  3. The button opens the full chart in its own tab. Edit the table and the chart follows.

Run the command Insert gantt template to start from an example.

The table

ColumnPurpose
WBSOutline number: 1, 1.1, 1.2.1. Parents roll up their children. Optional.
TaskName. Start it with ◆, <>, (ms) or [ms] to make it a milestone.
Start, EndDates as YYYY-MM-DD. A blank End makes a one-day task.
DonePercent complete.
AfterWBS numbers of predecessors, for example 1.1, 2.3. Drawn as arrows and used for the critical path.
OwnerPerson responsible.
BaselineThe originally planned end date. A red chip shows how many days it has slipped.

Header names are matched loosely, so Finish, Due, Activity, Assigned to and similar also work. Extra columns are ignored.

Problems such as a bad date or a duplicate WBS number are listed above the chart with their line number. The last good chart stays on screen while you fix them.

Chart

The toolbar above the chart holds the same controls as the settings, and your choices are saved.

  • Zoom: Day, Week, Month and Fit, with an overview strip you can drag (hide it in settings).
  • Colour: by status, phase or owner. Group: by WBS or by owner.
  • Critical path, Links, Baseline: outline the chain that sets the finish date, draw arrows from the After column, and mark each task's original finish with a red chip for the days slipped.
  • Row height: compact, normal or roomy. Collapse all folds the summary rows.
  • Select a task to dim everything outside its chain of links.
  • Print preview: a light sheet fitted to the width, with a title block and legend.
  • Export: save the chart next to the note as SVG or PNG.
  • Theme: switch the chart between auto, light and dark without changing Obsidian's theme.
  • Live update as you edit, with a Refresh button. Works on desktop and mobile.

A worked example: learn, build, boss fight, review

Studying theory alone fades. docs/concept.md explains a plan where every skill gets a short theory block, a hands-on exercise, a boss-fight calculation for your portfolio, and a spaced review two weeks later. docs/example-level-up-plan.md is that plan for an electrical engineer: six months covering AutoCAD, Revit, LTspice and Simulink, PowerFactory and SCADA, ending in a portfolio. Copy it into a note and press Open gantt.

Tweak the view

Everything in the toolbar is also a setting, and your choices are remembered.

WhatWhereOptions
ZoomToolbarDay, week, month, fit to width
Row heightToolbar or settingsCompact, normal, roomy, fit to window
Colour bars byToolbar or settingsStatus, phase, owner (area)
Group rows byToolbar or settingsWBS, owner (area)
Links, baseline, critical pathToolbar or settingsOn or off
Overview stripSettingsShow or hide
Task column widthSettings, or drag its edge280 to 720 pixels
Chart themeToolbar or settingsFollow Obsidian, light, dark
Drag bars to change datesSettingsOn or off
Push later tasks when movingSettingsOff by default
Open gantt inSettingsNew tab, split, pop-up window (desktop)

Edit by dragging

Drag a bar to move it, or drag either edge to change its start or end. Drag a milestone to move it, or a summary row to move everything under it. The table in your note is rewritten when you let go.

  • Only the Start and End cells of the rows you changed are touched. Your spacing and every other line stay as they are.
  • A tooltip shows the new dates while you drag. Press Escape to cancel.
  • Before writing, Ganttable checks that each row is still the one it drew. If the note changed in the meantime it refuses and asks you to refresh, so it never overwrites your edits.
  • Undo (or Ctrl/Cmd+Z while the chart has focus) puts the note back, but only if nothing else has edited it since.
  • On a touch screen, press and hold a bar for a moment before dragging, so swiping still scrolls the chart.
  • Turn it off with Drag bars to change dates in the settings. Tasks that depend on a moved task are not moved with it.

Roadmap

  • 0.4: move dependent tasks along, finish-to-finish links, working calendar and holidays.

Install

Until it is in the community list, install it with the BRAT plugin (add this repository), or copy main.js, manifest.json and styles.css from a release into <vault>/.obsidian/plugins/ganttable/ and turn it on under Community plugins. It needs Obsidian 1.13 or newer.

An example plan to try is in docs/example-level-up-plan.md. Copy it into a note and press Open gantt.

Development

npm install
npm test          # unit tests
npm run build     # type check and bundle main.js
npm run dev       # rebuild on change

Copy main.js, manifest.json and styles.css into <vault>/.obsidian/plugins/ganttable/ to try it.

License

MIT

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.