SQLSeal Charts

by hypersphere
5
4
3
2
1
Score: 40/100

Description

The SQLSeal Charts plugin extends SQLSeal by enabling data visualization through a variety of chart types. It integrates with ECharts, allowing users to transform SQL query results into line, bar, pie, scatter, and heatmap charts within Obsidian. By leveraging SQLSeal's querying capabilities, users can structure and manipulate data before displaying it graphically. The plugin provides built-in functions to process and refine datasets, making it suitable for users who want to analyze structured information directly in their notes.

Reviews

No reviews yet.

Stats

22
stars
2,954
downloads
1
forks
586
days
411
days
411
days
12
total PRs
1
open PRs
0
closed PRs
11
merged PRs
5
total issues
3
open issues
2
closed issues
0
commits

Latest Version

README file from

Github

SQLSeal Charts

SQLSeal Charts is an extension for SQLSeal Obsidian Plugin allowing to visualise your data using charts!

Powered by ECharts. Check their documentation for more examples of usage.

Features

  • Support for basic charts: line, bar, pie charts
  • Support for compex charts like scatterplot, heatmap, etc.

Getting started

Install the plugin by downloading latest release and unpacking it in .obsidian/plugins/sqlseal-charts. Make sure you have SQLSeal plugin already installed.

Example query

Pie Chart

Query below takes the first table in your current markdown tile and displays it as a piechart.

Category Amount
Rent 1500
Groceries 200
Entertainment 150
Repairs 200
TABLE finances = table(0)

CHART {
	series: [{
		type: 'pie'
	}]
}
SELECT * FROM finances

Pie Chart Example

Line Chart

CHART {
	xAxis: {
		type: 'category'
	},
	yAxis: {},
		series: [{
		type: 'bar',
		}]
}
SELECT
	strftime("%Y-%m-%d", created_at) as created_date,
	COUNT(*) as count
FROM files
GROUP BY created_date
ORDER BY created_date

Line Chart Example

Syntax

SQLSeal Charts uses ECharts under the hood. It automatically exposes data returned by your SQL query as a data dataset in ECharts. This means you can generate plenty of charts without worrying too much about how the data is being passed down. For more complex use-cases, you can always refer to the data by column name, it's index or even filter it down to create separate data-sets for different series. To read more about datasets, check out ECharts documentation.

For more advanced transformations, SQLSeal Charts exposes the following data and functions to be used to transform data further.

Data

Variable Name Description
data Array of objects containing raw data
columns array of column names
Object for each column You can refer to each of the column data by their name, i.e. for SELECT category, amount FROM data you can use category and amount columns

Functions

The following functions are exposed in your query to allow you to further process data.

Function Description
column(name: string) Returns array of the values for a specified column
mean, max, min, uniq, uniqBy Lodash functions to help with data processing
array(...arrays) creates subarrays from arrays, i.e. array([1,2], [3,4 ]) == [[1,3], [2,4]]. Useful when grouping multiple columns together when reshaping the data
assembleObjects(...definitions: { key: string, values: array }[]) Assembles multiple arrays into array of objects using provided key values
assemble(definition: Record<string, array>) Assembles multiple arrays into array of objects using a key=>value map

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Siteswap
5 years ago by Tim Dresser
Vega Visualizations
4 years ago by Justin Kim
Create Vega and Vega-Lite visualizations in https://obsidian.md/.
Financial Doc
3 years ago by Studio Webux
Financial Documentation and Tracking using CSV format and Chart.js directly in Obsidian
Size History
3 years ago by Piotr Borowski
Graph with vault size over time
Barcode Generator
3 years ago by noxonad
A barcode generator for obsidian.
View Count
3 years ago by Trey Wallis
Add view count tracking to your Obsidian vault
TinyChart
2 years ago by Alin Coop
Dead simple ASCII charts for Obsidian.
SQLSeal
2 years ago by hypersphere
Query your files using SQL directly from your Obsidian Vault
Charts
6 years ago by phibr0
Charts - Obsidian Plugin | Create editable, interactive and animated Charts in Obsidian via Chart.js
Charts View
5 years ago by caronchen
Data visualization solution in Obsidian, support plots and graphs.
Timeline
5 years ago by George Butco
Obisdian.md plugin for creating timelines
Plotly
5 years ago by Dmitriy Shulha
Obsidian plugin to embed Plotly charts into markdown notes.
Crackboard
2 years ago by Franklin
Obsidian plugin for crackboard.dev
Sankey
2 years ago by Finn Romaneessen
An Obsidian plugin to create sankey diagrams
SQLite DB
2 years ago by Stefano Frigerio
Daily Note Metrics
2 years ago by Andre-Diamond
Obsidian Plugin that parses Daily Notes and uses data to create charts
QueryDash
a year ago by lwx
Reactive Notes
a year ago by Elias Noesis
Byte Field Diagrams
a year ago by natri0
Byte-field diagrams for Obsidian.
Datacore
a year ago by Michael Brenan
Work-in-progress successor to Dataview with a focus on UX and speed.
Tag Timer
9 months ago by quantavil
The Tag Timer is a versatile plugin for Obsidian that allows you to seamlessly track the time you spend on specific tasks or sections within your notes.
Workout Planner
8 months ago by Rares Spatariu
Role Switch
7 months ago by Zafrem
This program is a tool that recognizes and makes task switching easier, even though multitasking is difficult.
Bases Charts
5 months ago by Moritz Jung
Life Tracker
4 months ago by Sébastien Dubois
Capture and visualize the data that matters in your life
Charted Roots
3 months ago by John Banister
Professional genealogical tools for Obsidian. Interactive family charts, geographic maps, PDF reports, GEDCOM/Gramps import-export, evidence tracking, and fictional calendar support. Built for genealogists, historians, and worldbuilders.
Notion Bases
3 months ago by bgarciamoura
Turn any folder into a Notion-style database — 7 views, 17 column types, formulas, relations, rollups, and subtasks. All stored in plain Markdown frontmatter.
Journalit
2 months ago by Cursive
Obsidian trading journal with broker sync, trade imports, analytics, prop firm tracking, reviews and rule-based trading workflows.
Sheet Plus
2 months ago by ljcoder
obsidian spreadsheets solutions
Habitify
2 months ago by justrelaxdc
Xyls Starmap
a month ago by xylhazlhztarr
A small little plugin for Obsidian MD to create interactive star system maps inside the note-taking app.
FitKit
a month ago by Paul Chiu
Obsidian plugin for tracking workouts as plain-markdown notes, with a structured set/rep/weight editor, exercise charts, and a Dataview-powered dashboard.
Finance Manager
16 days ago by Dmitry
Учёт доходов и расходов
Ultra Budget Tracker
11 days ago by Ahmed Hassan
Ultra Budget Tracker — turn bank SMS into structured transaction notes, budgets and balances inside Obsidian. Offline, desktop and mobile.