diagrammo61 downloadsRender bar, line, pie, sequence, arc, timeline, C4, kanban, and other diagrams from plain-text dgmo code fences.
Render Diagrammo diagrams inline in your Obsidian notes using ```dgmo code fences. Works on desktop and mobile.

All chart types from @diagrammo/dgmo are supported:
| Framework | Types |
|---|---|
| ECharts | bar, bar-stacked, line, multi-line, area, pie, doughnut, radar, polar-area, scatter, sankey, chord, function, heatmap, funnel |
| D3 | slope, wordcloud, arc, timeline, venn, quadrant, flowchart, class, er, org, infra, kanban, sitemap, c4 |
| Sequence | sequence (with participant type inference, collapsible sections, activation bars) |
Mermaid-backed chart types (quadrant via Mermaid) are not yet supported in the plugin.
Write a fenced code block with the dgmo language tag:
```dgmo
bar Quarterly Revenue
x-label Quarter
y-label Revenue ($M)
Q1 4.2
Q2 4.8
Q3 5.1
Q4 5.9
```
The diagram renders inline in reading mode and live preview.
Open the command palette (Cmd/Ctrl + P) and run:
Diagrammo Diagrams: Create example note with all chart types
This creates a Diagrammo Examples.md file in your vault with working examples of every supported chart type.
| Setting | Description | Default |
|---|---|---|
| Palette | Color palette for all diagrams — all 10 dgmo palettes available (nord, solarized, catppuccin, dracula, rose-pine, gruvbox, monokai, tokyo-night, one-dark, bold) | nord |
| Theme | Light, dark, or auto (follows Obsidian's theme) | auto |
| Chart height | Height in pixels for ECharts-based diagrams (100–2000) | 400 |
main.js, manifest.json, and styles.css from the latest release<vault>/.obsidian/plugins/dgmo/npm install
npm run build # One-shot build → main.js (esbuild, CJS bundle)
npm run dev # Watch mode (rebuilds on save, inline sourcemaps)
The build bundles everything (including @diagrammo/dgmo and echarts) into a single main.js in the repo root, which Obsidian loads directly. obsidian, electron, and CodeMirror packages are externalized.
src/
├── main.ts # Plugin lifecycle, markdown post-processor, example note command
├── render.ts # Rendering dispatcher (routes to ECharts or D3 based on chart type)
├── settings.ts # Settings tab UI (palette dropdown, theme, chart height)
└── examples.ts # Example note content with all chart types
@diagrammo/dgmo ^0.8.19 — diagram parsing and rendering (bundled by esbuild)echarts ^6.0.0 — chart rendering for ECharts-backed typesobsidian ^1.12.3 — Obsidian plugin API (dev only, externalized)npm run dev (watch mode).obsidian/plugins/dgmo/ folder```dgmo code fence — changes rebuild automaticallyversion in both package.json and manifest.json (must match)npm run build<version> (e.g., 1.0.1)main.jsmanifest.jsonstyles.cssThe plugin is listed in the Obsidian Community Plugins registry. New versions are picked up automatically from GitHub releases — just publish a new release with the required files attached.
MIT