Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Mermaid Base Views

niteronitero3k downloads

Create mermaid diagrams dynamically from your notes.

Add to Obsidian
Mermaid Base Views screenshot
  • Overview
  • Scorecard
  • Updates11

Create mermaid diagrams dynamically from your notes.

[!WARNING]

Now requires Obsidian 1.15.0 or newer.

Uses Obsidian's built-in Pele renderer with Mermaid syntax.

Flowchart example

Table of Contents

  • 📌 Usage
  • ⚙ Settings
    • Base view settings
    • Mermaid configuration
    • Styling
  • 🗃 View Types
    • Base features
    • Layout Views
      • Flowchart
      • Mindmap
      • Tree view
    • Time Views
      • Timeline
      • Gantt
    • Numeric Views
      • XY Chart
      • Quadrant Chart
      • Radar Chart
    • Aggregate Views
      • Pie Chart
      • Sankey
  • 🚧 Roadmap

📌 Usage

  1. Open a Base and add one of the Mermaid view types.
  2. Select the properties to display in the Base's Properties menu.
  3. Configure the view settings. Most views require a main property, e.g. a numeric Y-axis property in the XY chart.
  4. Use native Base features to filter, sort, group and search where supported.
Usage example

⚙ Settings

Start with the view settings, then use Mermaid configuration or CSS for further customization:

  • Base view settings: Configure individual options for each view type.
  • Mermaid configuration: Set additional options globally in the plugin settings or override them per Base view.
  • Styling: Customize the appearance with CSS snippets.

Base view settings

Configure each diagram in the Base's view settings. See the individual view types for options specific to that view.

Common settings

Most view types share these controls:

  • Title: Most views default to the view name when this is empty. Enter a single space to hide the title.
  • Mermaid Config Override Directive: Use Mermaid config for options without a dedicated control, such as values above XY chart bars.

Note properties, labels and images

In supported views, select and reorder properties in the Base's Properties menu to control label content and order. Note labels fall back to the filename when no label properties are selected. See Base features for support in each view.

Use Show property names to include property display names alongside values, except for filenames.

In note labels, selected file.name and file.basename values become note links. When a label has other properties but no filename, the whole element links to the note.

To display images or icons in labels or annotations, create a Base formula such as image("cover.png") for a local vault image or icon("flag") for a Lucide icon, then select the formula in Properties. Click on an image in the diagram to open its preview.

To display images from outside your vault, enable Settings → Mermaid Base Views → Allow external images, set a property such as cover to an image URL, and select a formula containing image(cover) in Properties. You can also use a formula like image("https://example.com/cover.jpg") directly. External images work wherever local formula images work.

External images requests go directly to image hosts, which receive your IP address and the requested URL. Avoid private content in URLs and prefer HTTPS, since HTTP is unencrypted. Remote images can change, disappear, or track when they are viewed.

Mermaid config

Use Mermaid configuration for diagram options not (yet) available via view settings. Set defaults for each view type in the plugin settings, or override them in an individual Base view.

Global Mermaid config

The plugin settings use the frontmatter configuration syntax.
For example, to show values on all XY charts and set their width use this in the plugin settings:

config:
  xyChart:
    showDataLabel: true
    width: 1000

Per view Mermaid config

In the Base view settings, Mermaid Config Override Directive uses the directives syntax.
To apply the same options to one XY chart, use this directive in the base view settings:

%%{init: { "xyChart": { "showDataLabel": true, "width": 1000 } }}%%

Styling

Pele adapts to your Obsidian theme. For further styling, use CSS snippets. Obsidian exposes --mermaid-* CSS variables for colors, corner radius, and font weights. Use Pele's .pele-* classes to target the diagram and elements inside it.

For example, change node fills, connecting lines and the first three chart series or Sankey flow colors:

.mermaid {
    --mermaid-surface: color-mix(in srgb, var(--color-orange) 20%, var(--background-primary));
    --mermaid-line-color: var(--color-orange);
    --mermaid-accent: var(--color-orange);

    /* Different views use different parts of this palette. */
    --mermaid-color-1: var(--color-orange);
    --mermaid-color-2: var(--color-purple);
    --mermaid-color-3: var(--color-cyan);
}

To make text italic across view types:

.pele :is(text, .pele-label) {
    font-style: italic;
}

🗃 View Types

The plugin supports the Mermaid diagrams and charts listed below. Other diagram types may not fit note-based data or may need features that Bases does not yet provide.

Choose a view from a category for what you want to show:

  • Layout views - Notes arranged by links, folders, or groups
  • Time views - Dates and durations
  • Numeric views - Numeric comparisons
  • Aggregate views - Sums across notes

Base features

All view types support native Base filtering and searching. You can configure them without writing Mermaid syntax.

Search applies to the underlying notes and selected properties. In aggregate views, searching changes which notes contribute to the totals; it does not search the displayed categories or flow names.

Support for other native Base features varies by view type:

View Category View Type Sorting Grouping Selected properties Property images & icons
Layout Views Flowchart Automatic layout Boxes Note labels Yes
Mindmap Automatic layout Branches Note labels Yes
Tree view Within branches Branches Annotations Yes
Time Views Timeline Within periods Sections Note labels Yes
Gantt Row order Sections Note labels Yes
Numeric Views XY Chart Note order - Note labels Yes
Quadrant Chart - Point colors Note labels Yes
Radar Chart Legend order - Chart axes -
Aggregate Views Pie Chart Legend order - - -
Sankey - - - -

Layout Views

Flowchart

Flowchart example

Shows links between notes, useful for exploring relationships and dependencies.

By default, links come from both note bodies and properties. Link property limits property links to one property, such as depends_on; body links are still included unless Link source is set to Properties.

Linked notes outside the Base's results are hidden unless Show links to filtered-out notes is enabled. When included, they show the selected properties and follow the Base's grouping, including groups absent from the filtered results.


Mindmap

Mindmap example

Arranges linked notes into branches, useful for topic outlines and hierarchical collections.

Uses the same link options as Flowchart.

Use Central node label to rename the central node; it defaults to the view name.

Each note appears at most once. When several notes link to the same target, it appears under the first branch that reaches it.


Tree view

Tree view example

Shows the Base's files in a foldable folder hierarchy using Mermaid TreeView. Empty folders are omitted.

Root folder (optional) sets the top-level folder; leave it empty for the vault root. Native Base grouping replaces folders with groups, while still respecting the root folder.

Folders stay alphabetical; Base sorting controls files within each branch. Filenames link to notes, and other selected properties appear as annotations.

Icon property sets each file's icon or image. Select a property or formula containing a Lucide icon name, a local image embed such as ![[cover.png]], or an icon() / image() value. Use none to hide a file's default icon.

Show file/folder icons toggles default icons. Highlight property (optional) highlights notes where a boolean property or formula is true.

Time Views

Timeline

Timeline example

Places notes in chronological periods, useful for journals, release histories, and milestones.

Requires a date or date & time Date / Time property, such as file.ctime.

Cutoff combines events into periods, such as months or days. Periods stay chronological; Base sorting only affects notes within the same period.

When grouped, each section has its own chronological periods and sections follow the Base group order.


Gantt

Gantt example

Shows time spans and date markers, useful for project schedules and daily plans.

Requires a Start property for time spans and point events, a Vertical marker property for date markers, or both. These accept date, date & time, or text properties.

Optionally set an End property accepting date, date & time, or text values, or a text Duration property, such as 30m or 1.5d (see full list). A populated end takes precedence over duration.

For point events, leave both end and duration empty, set the end equal to the start, or use a zero duration.

Text dates accept ISO dates or times such as 09:30. Time-only starts use today's date; time-only ends use the start's date. For other formats, set Input date text property format, for example DD/MM/YYYY (see syntax).

Axis label format uses different tokens, such as %d %b or %H:%M (see full list). Use Excludes to exclude days, such as weekends.

Bar color property (optional) styles time spans using active, done, or crit values from a property or formula. It does not affect point events.

Icon property sets icons or images for point events. Select a property or formula containing a Lucide icon name, a local image embed such as ![[cover.png]], or an icon() / image() value.

Numeric Views

XY Chart

XY chart example

Compares one numeric value per note using bars, a line, or both.

Requires a numeric Y-axis property, such as file.size.

The X-axis uses note labels in Base sort order. Dates are treated as equally spaced labels rather than a continuous time scale. Y-axis limits follow the data unless set manually; set the minimum to 0 if you want a zero baseline.


Quadrant Chart

Quadrant chart example

Plots notes on 4 areas using two numeric properties, such as importance and urgency. Requires X coordinate property and Y coordinate property.

Axis ranges follow the smallest and largest values in the results. Set them manually to keep positions comparable when filters change. Values outside a manual range are placed at its edge.

The left and bottom axis labels default to the selected properties' display names. Enter a single space to hide a label. Right and top labels are optional.


Radar Chart

Radar chart example

Compares several properties across notes on radial axes, useful for habit tracking or character attributes.

Select number or boolean properties in the Base's Properties menu to use as axes; at least three are recommended. Deselect unrelated properties such as file.name.

All axes share one scale, so use comparable units or formulas that convert values to a shared scale. Boolean values use 1 for true and 0 for false; missing values use the chart minimum.


Aggregate Views

Pie Chart

Pie chart example

Shows proportions across categories, useful for task counts by status or spending by category.

Requires a Category property, such as status or file.folder. Each slice counts notes with the same property value. Optionally select a numeric Value property to sum values instead.

List properties form a single combined category rather than separate slices. When summing a value property, missing or nonnumeric values contribute 1; filter those notes out if you only want numeric totals.


Sankey

Sankey diagram example

Shows the relative size of flows between named sources and targets, useful for budgets or resource allocation.

In Flows (source name, target name, value property), enter three separate text items per flow, for example:

  1. Income - source label (any text)
  2. Savings - target label (any text)
  3. saved - value property (exact property name)

Repeat for additional flows. The value property is summed across the filtered notes; booleans count as 1 or 0.

For formulas, use formula. before the name, such as formula.price. If a name matches multiple properties, use the full property ID, such as note.size or file.size.


🚧 Roadmap

  • Add gantt view type
  • Add radar chart view type
  • Add labels on XY chart (waiting for mermaid v11.7.0) -> use Mermaid Config instead
  • More styling options in the view settings instead of relying on the mermaid config -> use Styling instead
  • Support multiple lines in the XY chart
  • Support Timeline grouping through sections
  • Property dropdown options to only show appropriate types
  • Support sub-groups in mindmap, treeview, etc
HealthExcellent
ReviewPassed
About
Create dynamic mermaid diagrams and charts inside bases from your notes. Add views to visualize note links, timelines, aggregates and more with native base grouping, sorting, filtering and searching. Supports clickable note names and image properties.
ChartsBasesVisualization
Details
Current version
2.0.4
Last updated
5 days ago
Created
12 months ago
Updates
11 releases
Downloads
3k
Compatible with
Obsidian 1.15.0+
Platforms
Desktop, Mobile
License
0BSD
Report bugRequest featureReport plugin
Author
niteronitero
github.com/Nitero
GitHubnitero
  1. Community
  2. Plugins
  3. Charts
  4. Mermaid Base Views

Related plugins

Life Tracker

Capture and visualize the data that matters in your life.

Maps

Adds a map layout to bases so you can display notes as an interactive map view.

Charts

Easily create interactive charts in your notes.

Charts View

Visualize data from your notes with plots and graphs.

Bases Board

Interactive board view for bases, use as Kanban or Gallery, with grouping for rows and columns.

TTRPG Tools - Timeline

Timeline-Renderer für Calendarium-Frontmatter (fc-date/fc-end). 200×315 Bild, Callout-Stil, native Popover, mobilfreundlich.

Mermaid Zoom

Add zoom functionality to Mermaid diagrams. Use mouse wheel or touch gestures to zoom in and out.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Advanced Canvas

Supercharge your canvas experience. Create presentations, flowcharts and more.

ExcaliBrain

An interactive, structured mind-map of your Obsidian vault.