Repository avatar
Monitoring
v0.1.4
active

datum

io.github.aqentra-ai/datum

Data-driven PowerPoint charts (waterfall, Mekko, Gantt, ...) linked to Excel, edited by agents.

Documentation

DATUM

Open-source, data-driven charts for PowerPoint. Stacked and clustered columns, horizontal bars, waterfalls, line and area charts, pies, Mekko and Gantt, drawn as native, editable PowerPoint shapes. Data stays linked to Excel. Branding comes from one theme file. AI agents can edit every chart as plain JSON.

A slide with DATUM charts, one of them linked to an Excel sheet

  • No code needed: a DATUM tab in PowerPoint and Excel, numbers pasted from Excel, and a click on any part of a chart to change it. See the user guide.
  • Excel ↔ PowerPoint, live: charts follow their own block of Excel cells as you type, or the saved workbook when Excel is closed, so one sheet can feed many charts (named ranges survive inserted rows). Copy chart in Excel and Ctrl+V in PowerPoint, Edit in Excel from PowerPoint, and per-chart automatic or on-request updates. Linked cells get a frame that shows the title, category, series and value cells; drag it to change the cells, delete it to unlink.
  • Updates in place: only the shapes that change are touched, keeping the chart's size, position and stacking order; the rest of the slide is untouched.
  • Everything you format daily: titles, subtitles and source notes; number formats (k/m/bn, decimals, prefix/suffix, negatives in parentheses); each axis part on or off with fixed min/max, log scales, axis breaks and a secondary axis; legends anywhere, in rows or columns, or series named beside them; per-bar colours; single totals and labels deleted; CAGR, difference and step arrows and target lines; your own default design per chart type.
  • Native output: charts are grouped PowerPoint shapes, so they look right everywhere, even without DATUM installed.
  • Corporate themes: fonts, palette and number format live in one JSON file. Change it and every chart follows.
  • Agent-native: the chart spec is plain JSON stored inside the deck. Agents edit it with the datum CLI or the built-in MCP server, locally: data (written back to linked Excel cells), styles, themes and default designs, checking their work as a picture. Microsoft 365 Copilot uses the same actions through a Copilot agent (preview).
  • Simple: one-line install per user, no admin rights. One add-in, one CLI and two runtime dependencies. No cloud service, account or telemetry: the helper that links Excel and PowerPoint runs on your own computer.

See it work

Both recorded live in PowerPoint and Excel.

Type in Excel, the chart in PowerPoint follows.

Typing new values for Costs and Price in Excel redraws the waterfall chart in PowerPoint

Ask your agent, it edits the chart through DATUM's MCP server.

An AI agent greys out 2021 to 2024, highlights 2025 and adds a CAGR arrow and a new title

Every chart type consultants use, as native PowerPoint shapes (exported from PowerPoint):

Stacked columns with CAGR, waterfall, Mekko, ranked bars, lines with a difference arrow, doughnut, columns with a line on a second axis, Gantt

How it works

┌───────── DATUM in PowerPoint ──────────┐     ┌──── DATUM in Excel ────┐
│ gallery · datasheet · format · theme   │     │ selection → chart      │
│ draws charts as native shapes          │     │ sends linked cells     │
└───────────────────┬────────────────────┘     └───────────┬────────────┘
                    └─ DATUM Desktop (https://localhost) ──┘
                       serves the pane · relays live cells as you type
                       watches saved workbooks · Copy chart (Ctrl+V)

Excel / CSV ──► chart spec (JSON) ──► layout engine ──► native shapes in the .pptx
theme.json  ──► theme      (JSON) ──┘        ▲
                                             │
           datum CLI · MCP server (Copilot, Claude, …): same engine, local files

Each chart is a group of shapes on the slide. Its spec is stored in a PowerPoint tag on that group, so it survives copy, move and resize. The same TypeScript engine renders charts in the add-in, the CLI and the MCP server.

Office add-ins run in separate, sandboxed web views: they can't talk to each other or open files by path. DATUM keeps the web add-in (so it also runs on Mac and the web) and adds DATUM Desktop, a small local helper installed per user (no admin rights). It serves the pane over https://localhost, passes linked cells from Excel to PowerPoint as you type, and watches linked workbooks on disk (including OneDrive and SharePoint folders synced to the computer).

Quick start

In PowerPoint and Excel (Microsoft 365 on Windows or Mac)

Install DATUM Desktop for your user account (no admin rights):

Windows (PowerShell)irm https://datum.aqentra.ai/install.ps1 | iex
Mac (Terminal)curl -fsSL https://datum.aqentra.ai/install.sh | bash

Or download datum-desktop.zip, unzip it and run install.cmd (Windows) or bash install.sh (Mac). The installer:

  1. copies DATUM and a private Node.js (checked against nodejs.org's SHA-256 list) to %LOCALAPPDATA%\DATUM or ~/Library/Application Support/DATUM;
  2. creates a certificate for https://localhost and asks you to trust it (one confirmation dialog);
  3. adds the DATUM add-in to PowerPoint and Excel, and starts DATUM Desktop now and at every sign-in.

The installer ends with a checklist (lines marked FIX say what to do). Restart PowerPoint and Excel, then use the DATUM tab (if it isn't there yet: Home › Add-ins › Developer Add-ins › DATUM, once). New chart puts a chart on the slide; type or paste your numbers and it follows. The user guide walks through everything, including the Excel link. To remove DATUM, run uninstall.cmd or uninstall.sh in the same folder.

PowerPoint on the web, or deployed by IT: the install page (datum.aqentra.ai) also offers the add-in file on its own. Upload it under Home › Add-ins › More add-ins › My add-ins › Upload my add-in, or deploy it to everyone in the Microsoft 365 admin center › Settings › Integrated apps. Without DATUM Desktop, linked charts update on Update after saving the workbook, instead of live.

You can also try the pane without installing anything: open taskpane.html from the install page in any browser (it downloads a .pptx).

Requires PowerPointApi 1.8 (Microsoft 365 version 2504+ on Windows, 16.96+ on Mac, or Office for the web); the Excel side needs ExcelApi 1.4 (live updates use 1.9).

From the command line (Node.js 20+)

npx @aqentra/datum new deck.pptx --theme themes/default.json
npx @aqentra/datum import sales.xlsx --type bar --variant stacked --range A1:F4 --link deck.pptx > chart.json
npx @aqentra/datum set deck.pptx chart.json --title "Revenue by segment"
# later, after the Excel file changed:
npx @aqentra/datum refresh deck.pptx

# the other way round: hand a chart's data to Excel (linked through a named range)
npx @aqentra/datum export-data deck.pptx <chart-id> -o data/revenue.xlsx

Run npx @aqentra/datum --help for all commands. Close the deck in PowerPoint before the CLI writes to it.

With AI agents

DATUM runs as a local MCP server: the agent starts it on your machine, and nothing is hosted. The DATUM Desktop installer adds it to VS Code (GitHub Copilot) and Claude Desktop by itself. With DATUM Desktop running, agents work on the presentation open in PowerPoint: they list charts, read and change the selected one ("this chart"), insert charts and take the user to them, and the slide changes at once. Without deck, tools use the open presentation; with a path, they change the file.

To add it by hand:

// VS Code / GitHub Copilot: .vscode/mcp.json
{ "servers": { "datum": { "type": "stdio", "command": "npx", "args": ["-y", "@aqentra/datum", "mcp"] } } }

// Claude Code / Claude Desktop: .mcp.json
{ "mcpServers": { "datum": { "command": "npx", "args": ["-y", "@aqentra/datum", "mcp"] } } }

You can also skip MCP: agents can call the CLI, or edit one JSON file (datum export deck.pptx -o deck.json, edit, then datum apply deck.pptx deck.json). See AGENTS.md.

Microsoft 365 Copilot (preview): DATUM Desktop serves a Copilot agent package at https://localhost:32886/copilot.zip (unified manifest, declarative agent and Office add-in actions that the DATUM pane carries out). Upload it as a custom app in a Microsoft 365 tenant with Copilot; see the user guide.

Chart spec

{
  "type": "waterfall",
  "categories": ["EBIT 2024", "Price", "Volume", "Costs", "EBIT 2025"],
  "series": [{ "name": "EBIT", "values": [120, 18, 9, -15, "="] }],
  "labels": { "suffix": "m" }
}
TypeVariantsNotes
barclustered, stacked, percent"orientation": "horizontal" for bars; a series with "type": "line" makes a combination chart; totals, CAGR and difference arrows, value lines
waterfallFirst value is the start, "=" draws a (sub)total
lineGaps for null, optional markers
areastacked, percent
piepie, doughnutOne series; shares in %, total in the doughnut centre
mekkopercent, stackedWidths from column totals, or widths for unit Mekko
gantttasks with ISO dates; no end means milestone

Every type takes title, subtitle, note, labels (number format), axis (each part on/off, min/max), legend and per-value pointColors.

The full reference is in docs/spec.md. The machine-readable JSON Schema comes from datum schema, and there are more samples in examples/.

Themes and corporate branding

Your style. One file: the same chart in four themes, Boardroom, Neon, Editorial and Playful, which differ in font, colours, spacing, axes, legend and labels

A theme sets more than colours: the font, bar spacing, axes and gridlines, line styles, where the legend sits and what the labels show.

A theme is a partial JSON file merged over themes/default.json:

{
  "name": "Acme",
  "font": { "family": "Arial", "size": 10 },
  "palette": ["#002B5C", "#0067B1", "#7DB4E6", "#C3D9F0"],
  "colors": { "positive": "#2E7D32", "negative": "#C62828" },
  "number": { "thousands": ".", "decimal": "," }
}
  • Per deck: use the add-in's theme panel, datum theme deck.pptx acme.json, or the datum_set_theme MCP tool.
  • Company-wide default: build the add-in with npm run build -- --theme acme.json. Every new deck picks it up.

See docs/themes.md.

Hosting the add-in

Office add-ins are web pages, so Office loads the task pane from an HTTPS URL. DATUM's pane is static files with no backend, and all data stays on the user's machine.

  • DATUM Desktop (default on Windows and Mac): serves the pane from https://localhost:32886 on each computer; nothing to host.
  • GitHub Pages: the included workflow publishes dist/addin (pane, manifest, install page, installers and datum-desktop.zip) on every push to main. The one-line installers come from there and fetch datum-desktop.zip from the latest GitHub release, which counts its downloads; a daily workflow records the numbers in downloads.csv on the stats branch.
  • Intranet or SharePoint: npm run build -- --base-url https://intranet.example.com/datum/ --theme acme.json, then copy dist/addin. The installers and the zip in it then download from your server and carry your theme.
  • Local only: npm run dev serves on https://localhost:3000. Run npx office-addin-dev-certs install once first.

To deploy to a whole organisation, upload the manifest in the Microsoft 365 admin center under Integrated apps, and distribute datum-desktop.zip (or the install command) for live links.

Development

npm install
npm run check      # typecheck + tests
npm run dev        # add-in on https://localhost:3000 (also opens as a playground in any browser)
npm run datum -- --help
npm run build && npm run datum -- install   # DATUM Desktop from this checkout (status, serve, uninstall)

See CONTRIBUTING.md for structure, style and commit conventions.

Status and limitations

Early (0.x) release. Known limitations:

  • Area charts (and pie charts in Office versions without PowerPointApi 1.10) are updated by replacing their slide with an identical copy, because PowerPoint's add-in interface has no free-form shapes. Slide content, notes and layout are kept, but undo treats it as a slide change, so they wait for Update instead of following Excel live. All other charts are redrawn in place.
  • Element menus open in the pane's chart preview: PowerPoint doesn't let add-ins extend the right-click menu of shapes on a slide.
  • Without DATUM Desktop (PowerPoint on the web, or the add-in file alone), Excel and PowerPoint can't talk directly: links update from the saved workbook when you click Update, and DATUM may ask you to pick the workbook.
  • Installer prompts: the scripts are not code-signed yet, so Windows may show an "unknown publisher" warning for install.cmd and macOS blocks a double-clicked install.command (use the Terminal command instead). The localhost certificate needs one confirmation.
  • The CLI cannot write to a deck that is open in PowerPoint.
  • Text widths are estimated, so very long labels may need a larger chart.

License

Apache 2.0. DATUM is an independent project, not affiliated with Microsoft.

NPM
@aqentra/datum
Install Command
npm install @aqentra/datum
Runtime: npx