Skip to content

Commands

DataGlass adds commands to Obsidian's command palette. Open it with Cmd/Ctrl + P and type "DataGlass" to see all available commands.

Chart Creation

Browse chart templates visually. Search by name, filter by category, preview the YAML before inserting.

  1. Open command palette (Cmd/Ctrl + P)
  2. Type "Insert chart from gallery"
  3. Browse or search templates
  4. Click to insert at cursor

The gallery includes templates for every chart type with sample data you can replace.

Show Plot Template Picker

Quick-insert from 18 pre-configured chart templates. Faster than the gallery when you know what you want.

Available templates:

CategoryTemplates
BasicScatter, Bar, Line, Area
AdvancedMulti-line, Stacked Area, Bar with Reference, Advanced Scatter, Multi-Mark, Faceted
StatisticalHeatmap, Histogram, Box Plot, Density

Open Chart Builder

Launch the visual editor in the right sidebar. Build charts through a form interface instead of writing YAML.

  1. Open command palette
  2. Type "Open Chart Builder"
  3. Configure chart options in the sidebar
  4. Click "Insert" to add the chart

Best for users who prefer GUI over code.

Export

Export Chart as PNG

Convert the chart at your cursor to a PNG image file.

  1. Place cursor inside a chart code block
  2. Open command palette
  3. Type "Export chart as PNG"
  4. Choose filename and location

The exported image matches what you see in preview. Use for sharing, embedding in documents, or presentations.

Performance

Show Performance Report

Display a quick summary of chart rendering times. Shows average render time and cache hit rate.

Show Detailed Performance Report

Open a modal with comprehensive metrics:

  • Parse, load, transform, render times by phase
  • Data loading time per source type
  • Cache hit/miss rates
  • Memory usage estimates
  • Statistical summaries (avg, min, max, p50, p95, p99)
  • Slowest operations ranking

Use this to diagnose slow charts and identify bottlenecks.

Export Performance Report as JSON

Copy all performance metrics as JSON. Useful for tracking performance over time or reporting issues.

Export Performance Report as Markdown

Copy metrics as a Markdown table. Paste into notes for documentation.

Reset Performance Metrics

Clear all collected performance data. Start fresh after making optimizations.

Data

Show Domain Quick Reference

Open a help modal explaining domain inference. Shows examples of automatic category ordering and how to override it.

Canvas

Open Canvas

Open the canvas visualization editor for creating linked chart layouts.

Create New Canvas

Create a blank canvas file in your vault.

Start Canvas Presentation

Enter full-screen presentation mode. Navigate slides with arrow keys, exit with Escape.

Create DataGlass Chart File

Create a standalone markdown file containing a chart. Useful for embedding charts in canvas nodes.

Migrate Canvas to Native Format

Convert custom DataGlass canvas files to Obsidian's native canvas format.

Keyboard Shortcuts

Assign keyboard shortcuts to frequently used commands:

  1. Open Settings → Hotkeys
  2. Search for "DataGlass"
  3. Click the + icon to assign a shortcut

Recommended shortcuts:

CommandSuggested Shortcut
Insert chart from galleryCmd/Ctrl + Shift + G
Export chart as PNGCmd/Ctrl + Shift + E
Show Performance ReportCmd/Ctrl + Shift + P

Released under the MIT License. Built by Boundary Lab.