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
  • Join the community
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Vega Visualizations

justin-j-kjustin-j-k5k 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

68%
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
3 years ago
Updates
3 releases
Downloads
5k
Compatible with
Obsidian 0.15.0+
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.

Charts View

Visualize data from your notes with plots and graphs.

Tracker

Track occurrences and numbers in your notes.

Maps

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

Advanced Canvas

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

Strange New Worlds

Reveal networked thought and the strange new worlds created by your vault.

Sheet Plus

Create Excel-like spreadsheets and easily embed them in Markdown.

Markmind

Mind map, outline and PDF annotation tool. (Closed source)

Markwhen

Create timelines, gantt charts, calendars, and more using markwhen.

Kanban

Create Markdown-backed Kanban boards.