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
Insert Chart from Gallery
Browse chart templates visually. Search by name, filter by category, preview the YAML before inserting.
- Open command palette (
Cmd/Ctrl + P) - Type "Insert chart from gallery"
- Browse or search templates
- 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:
| Category | Templates |
|---|---|
| Basic | Scatter, Bar, Line, Area |
| Advanced | Multi-line, Stacked Area, Bar with Reference, Advanced Scatter, Multi-Mark, Faceted |
| Statistical | Heatmap, 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.
- Open command palette
- Type "Open Chart Builder"
- Configure chart options in the sidebar
- 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.
- Place cursor inside a chart code block
- Open command palette
- Type "Export chart as PNG"
- 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:
- Open Settings → Hotkeys
- Search for "DataGlass"
- Click the + icon to assign a shortcut
Recommended shortcuts:
| Command | Suggested Shortcut |
|---|---|
| Insert chart from gallery | Cmd/Ctrl + Shift + G |
| Export chart as PNG | Cmd/Ctrl + Shift + E |
| Show Performance Report | Cmd/Ctrl + Shift + P |