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

Vega Visualizations

justin-j-kjustin-j-k6k downloads

Create highly-customizable data visualizations like line charts and scatter plots using Vega or Vega-Lite.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

Create highly customizable data visualizations using Vega or Vega-Lite specifications written in JSON format inside of the Obsidian note-taking app. Additional documentation can be found at the Vega website for formatting Vega specifications and Vega-Lite specifications.

To add a chart or plot, create a code block with vega or vega-lite as the language and add the JSON specification.

Examples

Bar Chart using Vega-Lite

```vega-lite
{
  "width": 300,
  "data": {
    "values": [
      {"a": "A", "b": 39}, {"a": "B", "b": 98},
      {"a": "C", "b": 76}, {"a": "D", "b": 23}
    ]
  },
  "mark": "bar",
  "encoding": {
    "x": { "field": "a", "type": "nominal", "axis": { "labelAngle": 0 } },
    "y": { "field": "b", "type": "quantitative" }
  }
}
```

Example Bar Chart

Line Chart Using Vega

```vega
{
  "width": 400,
  "height": 200,
  "data": [
    {
      "name": "table",
      "values": [
        { "x": 0, "y": 50 }, { "x": 1, "y": 0 },
        { "x": 2, "y": 30 }, { "x": 3, "y": 40 },
        { "x": 4, "y": 60 }, { "x": 5, "y": 25 }
      ]
    }
  ],
  "scales": [
    {
      "name": "x",
      "type": "point",
      "range": "width",
      "domain": { "data": "table", "field": "x" }
    },
    {
      "name": "y",
      "type": "linear",
      "range": "height",
      "domain": { "data": "table", "field": "y" }
    }
  ],
  "axes": [
    { "orient": "bottom", "scale": "x" },
    { "orient": "left", "scale": "y" }
  ],
  "marks": [
    {
      "type": "line",
      "from": { "data": "table" },
      "encode": {
        "enter": {
          "x": { "scale": "x", "field": "x" },
          "y": { "scale": "y", "field": "y" },
          "interpolate": { "value": "monotone" }
        }
      }
    }
  ]
}
```

Example Line Chart

Acknowledgements

Vega, Vega-Lite

BSD 3-Clause "New" or "Revised" License
Copyright (c) 2015-2021, University of Washington Interactive Data Lab

HealthFair
ReviewSatisfactory
About
Create customizable charts and plots by writing Vega or Vega-Lite JSON specifications inside vega or vega-lite code blocks. Render bar, line, and advanced visualizations inline in notes for quick preview.
ChartsVisualizationJSON
Details
Current version
0.1.1
Last updated
3 years ago
Created
4 years ago
Updates
3 releases
Downloads
6k
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
BSD-3-Clause
Report bugRequest featureReport plugin
Author
justin-j-kjustin-j-k
github.com/Some-Regular-Person
GitHubjustin-j-k
  1. Community
  2. Plugins
  3. Charts
  4. Vega Visualizations

Related plugins

Charts

Easily create interactive charts in your notes.

Life Tracker

Capture and visualize the data that matters in your life.

Charts View

Visualize data from your notes with plots and graphs.

Bases Charts

Bases views for scatter, line, and bar charts.

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.

Breadcrumbs

Visualise the hierarchy of your vault using a breadcrumb trail or matrix view.

Advanced Canvas

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

Maps

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

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.