agentsclimarketplace

Obsidian charts

Skill rexynexus/agent-skills/skills/obsidian-charts

Create and edit charts in Obsidian using the Charts plugin (phibr0/obsidian-charts). Use when working with chart codeblocks, data visualization, bar charts, line charts, pie charts, radar charts, scatter plots, or when the user mentions charts, graphs, or data visualization in Obsidian notes.From its SKILL.md

Install
npx -y skills add rexynexus/agent-skills --skill obsidian-charts

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

14.8 KB, as published. Nobody here has run it

Obsidian Charts Skill

This skill enables skills-compatible agents to create and edit valid chart codeblocks for the Obsidian Charts plugin (phibr0/obsidian-charts), which uses Chart.js as its rendering engine.

Overview

The Charts plugin supports two codeblock formats:

  • chart - YAML syntax with simplified configuration (primary format)
  • advanced-chart - Raw Chart.js JSON configuration for full control

Supported chart types: bar, line, pie, doughnut, radar, polarArea, scatter, bubble, sankey

Chart Codeblock (YAML)

The standard format uses YAML inside a fenced chart code block.

Required Fields

FieldTypeDescription
typestringChart type: bar, line, pie, doughnut, radar, polarArea, scatter, bubble, sankey
labelsarrayCategory labels. Not required when using id (chart from table).
seriesarrayArray of dataset objects. Not required when using id.

Series Object

series:
  - title: "Series Name"    # Legend label (optional but recommended)
    data: [1, 2, 3, 4, 5]   # Array of numbers (required)

Any Chart.js dataset property can be added to a series item and will be passed through:

series:
  - title: Revenue
    data: [10, 20, 15, 25]
    borderDash: [5, 5]
    pointRadius: 5

Bar Chart

type: bar
labels: [Q1, Q2, Q3, Q4]
series:
  - title: Revenue
    data: [12000, 19000, 15000, 22000]
  - title: Expenses
    data: [8000, 11000, 9000, 14000]
beginAtZero: true

Horizontal Bar Chart

type: bar
labels: [Engineering, Sales, Marketing, Support]
series:
  - title: Headcount
    data: [45, 30, 15, 20]
indexAxis: y
beginAtZero: true

Stacked Bar Chart

type: bar
labels: [Jan, Feb, Mar, Apr]
series:
  - title: Product A
    data: [20, 30, 25, 35]
  - title: Product B
    data: [15, 20, 18, 22]
  - title: Product C
    data: [10, 8, 12, 15]
stacked: true
beginAtZero: true

Line Chart

type: line
labels: [Mon, Tue, Wed, Thu, Fri]
series:
  - title: Temperature
    data: [18, 22, 19, 24, 21]
tension: 0.3

Area Chart (Filled Line)

type: line
labels: [Jan, Feb, Mar, Apr, May, Jun]
series:
  - title: Users
    data: [100, 180, 250, 310, 420, 500]
fill: true
tension: 0.4
beginAtZero: true

Stacked Area Chart

type: line
labels: [Jan, Feb, Mar, Apr]
series:
  - title: Direct
    data: [50, 60, 70, 80]
  - title: Referral
    data: [30, 35, 40, 50]
  - title: Organic
    data: [20, 25, 30, 35]
fill: true
stacked: true
tension: 0.3

Line with Best Fit

type: line
labels: [1, 2, 3, 4, 5, 6, 7, 8]
series:
  - title: Measurements
    data: [2.1, 4.3, 5.8, 8.2, 9.7, 12.1, 13.5, 16.0]
bestFit: true
bestFitTitle: Linear Trend
bestFitNumber: 0
tension: 0

Pie Chart

type: pie
labels: [Engineering, Sales, Marketing, Support, Operations]
series:
  - title: Budget
    data: [35, 25, 20, 10, 10]
labelColors: true
width: 40%

Doughnut Chart

type: doughnut
labels: [Complete, In Progress, Not Started]
series:
  - title: Tasks
    data: [45, 30, 25]
labelColors: true
width: 40%

Radar Chart

type: radar
labels: [Speed, Reliability, Comfort, Safety, Efficiency]
series:
  - title: Model A
    data: [80, 90, 70, 85, 75]
  - title: Model B
    data: [70, 75, 90, 80, 85]
rMin: 0
rMax: 100
width: 60%

Polar Area Chart

type: polarArea
labels: [Red, Green, Yellow, Grey, Blue]
series:
  - title: Votes
    data: [11, 16, 7, 3, 14]
labelColors: true
width: 50%

Scatter Chart

Use advanced-chart for scatter plots, as they require {x, y} data points:

{
  "type": "scatter",
  "data": {
    "datasets": [{
      "label": "Measurements",
      "data": [
        {"x": 1, "y": 2.3},
        {"x": 2, "y": 4.1},
        {"x": 3, "y": 5.8},
        {"x": 4, "y": 8.2},
        {"x": 5, "y": 9.5}
      ]
    }]
  },
  "options": {
    "scales": {
      "x": {"title": {"display": true, "text": "X Axis"}},
      "y": {"title": {"display": true, "text": "Y Axis"}}
    }
  }
}

Bubble Chart

Use advanced-chart for bubble charts, as they require {x, y, r} data points:

{
  "type": "bubble",
  "data": {
    "datasets": [{
      "label": "Projects",
      "data": [
        {"x": 20, "y": 30, "r": 15},
        {"x": 40, "y": 10, "r": 10},
        {"x": 30, "y": 22, "r": 20}
      ]
    }]
  }
}

Sankey Chart

type: sankey
labels: [Oil, Natural Gas, Coal, Fossil Fuels, Electricity, Energy]
series:
  - data:
      - [Oil, 15, Fossil Fuels]
      - [Natural Gas, 20, Fossil Fuels]
      - [Coal, 25, Fossil Fuels]
      - [Fossil Fuels, 50, Energy]
      - [Electricity, 30, Energy]
    priority:
      Oil: 1
      Natural Gas: 2
      Coal: 3
    colorFrom:
      Oil: black
      Coal: gray
    colorTo:
      Fossil Fuels: slategray
      Energy: orange

Each data entry is a [from, flow_value, to] triplet. Optional per-node properties:

  • priority - ordering of nodes (lower = higher position)
  • colorFrom - color of the flow at the source node
  • colorTo - color of the flow at the destination node

Mixed Charts

Override type at the series level to combine chart types:

type: bar
labels: [Jan, Feb, Mar, Apr, May, Jun]
series:
  - title: Revenue
    data: [12, 19, 15, 25, 22, 30]
  - title: Trend
    data: [14, 16, 18, 20, 22, 24]
    type: line
    fill: false
    tension: 0.2
beginAtZero: true

Configuration Options

Sizing and Layout

KeyTypeDefaultDescription
widthstring (CSS)"100%"Chart container width. Example: "400px", "40%"
paddingnumber-Layout padding around the chart

Line/Area Options

KeyTypeDefaultDescription
fillbooleanfalseFill area under lines
tensionnumber (0-1)0Line smoothing. 0 = straight, 1 = max curve
spanGapsbooleanfalseConnect points across null/missing values

Best Fit Line (line charts only)

KeyTypeDefaultDescription
bestFitbooleanfalseAdd linear regression best-fit line
bestFitTitlestring"Line of Best Fit"Legend label for best-fit line
bestFitNumberinteger0Index of series to compute best-fit from

Axis Configuration (bar and line)

KeyTypeDefaultDescription
beginAtZeroboolean-Force axis to start at zero
stackedbooleanfalseStack bars/areas on both axes
indexAxis"x" or "y""x"Set to "y" for horizontal bar charts
xTitlestring-X-axis title
yTitlestring-Y-axis title
xMinnumber-X-axis minimum value
xMaxnumber-X-axis maximum value
yMinnumber-Y-axis minimum value
yMaxnumber-Y-axis maximum value
xReverseboolean-Reverse x-axis direction
yReverseboolean-Reverse y-axis direction
xDisplaybooleantrueShow/hide x-axis
yDisplaybooleantrueShow/hide y-axis
xTickDisplaybooleantrueShow/hide x-axis tick labels
yTickDisplaybooleantrueShow/hide y-axis tick labels
xTickPaddingnumber-Padding for x-axis tick labels
yTickPaddingnumber-Padding for y-axis tick labels

Radar/Polar Area Axis

KeyTypeDefaultDescription
rMinnumber-Minimum value for radial axis
rMaxnumber-Maximum value for radial axis
beginAtZeroboolean-Force radial axis to start at zero

Legend

KeyTypeDefaultDescription
legendbooleantrueShow/hide chart legend
legendPositionstring"top""top", "bottom", "left", "right"

Colors and Appearance

KeyTypeDefaultDescription
labelColorsboolean-Give each data point a different color from the palette (use for pie/doughnut/polarArea)
transparencynumber (0-1)0.25Alpha for background fill colors
textColorstringCSS --text-mutedOverride text color for labels/legend

Time Axis

KeyTypeDefaultDescription
timestring-Time-based x-axis: "day", "week", "month", "year"

Chart from Table

Link a chart to a markdown table using a block ID.

Table with Block ID

| Month | Revenue | Expenses |
| ----- | ------- | -------- |
| Jan   | 10000   | 8000     |
| Feb   | 12000   | 9000     |
| Mar   | 15000   | 11000    |
^finance-data

Chart Referencing the Table

type: bar
id: finance-data
layout: columns
beginAtZero: true

Table Reference Options

KeyTypeDescription
idstringBlock ID of the table (without ^)
layoutstring"columns" (first column = labels) or "rows" (first row = labels)
filestringFilename without extension, for tables in other notes
selectarrayShow only specific rows/columns: [Row1, Row3]

The chart updates live when the source table changes.

Advanced Chart (Raw Chart.js)

The advanced-chart code block accepts a raw Chart.js configuration object as JSON. This gives full access to all Chart.js options, plugins, scales, and the annotation plugin.

{
  "type": "bar",
  "data": {
    "labels": ["Red", "Blue", "Yellow"],
    "datasets": [{
      "label": "Votes",
      "data": [12, 19, 7],
      "backgroundColor": [
        "rgba(255, 99, 132, 0.2)",
        "rgba(54, 162, 235, 0.2)",
        "rgba(255, 206, 86, 0.2)"
      ],
      "borderColor": [
        "rgba(255, 99, 132, 1)",
        "rgba(54, 162, 235, 1)",
        "rgba(255, 206, 86, 1)"
      ],
      "borderWidth": 1
    }]
  },
  "options": {
    "scales": {
      "y": {
        "beginAtZero": true
      }
    },
    "plugins": {
      "legend": {
        "position": "bottom"
      }
    }
  }
}

Advanced Chart with Annotations

The annotation plugin (chartjs-plugin-annotation) is pre-registered:

{
  "type": "line",
  "data": {
    "labels": ["Jan", "Feb", "Mar", "Apr", "May"],
    "datasets": [{
      "label": "Sales",
      "data": [65, 59, 80, 81, 56],
      "borderColor": "rgb(75, 192, 192)",
      "tension": 0.1
    }]
  },
  "options": {
    "plugins": {
      "annotation": {
        "annotations": {
          "threshold": {
            "type": "line",
            "yMin": 70,
            "yMax": 70,
            "borderColor": "red",
            "borderDash": [5, 5],
            "label": {
              "display": true,
              "content": "Target"
            }
          }
        }
      }
    }
  }
}

Dataview Integration

Use window.renderChart() inside a dataviewjs block to create charts from vault data:

const pages = dv.pages('#project')
const names = pages.map(p => p.file.name).values
const values = pages.map(p => p.score).values

const chartData = {
    type: 'bar',
    data: {
        labels: names,
        datasets: [{
            label: 'Scores',
            data: values,
            backgroundColor: 'rgba(54, 162, 235, 0.2)',
            borderColor: 'rgba(54, 162, 235, 1)',
            borderWidth: 1
        }]
    }
}
window.renderChart(chartData, this.container)

The chartData object is a standard Chart.js configuration. Any Chart.js feature is available through this API.

Default Color Palette

The plugin cycles through these 6 colors by default:

IndexColorRGBA
1Red/Pinkrgba(255, 99, 132, 1)
2Bluergba(54, 162, 235, 1)
3Yellowrgba(255, 206, 86, 1)
4Tealrgba(75, 192, 192, 1)
5Purplergba(153, 102, 255, 1)
6Orangergba(255, 159, 64, 1)

Background colors are generated from border colors using the transparency value (default 0.25).

Custom colors can be set via:

  • Plugin settings UI
  • CSS variables (with themeable: true in settings):
:root {
    --chart-color-1: #ff00ff;
    --chart-color-2: rgb(0, 128, 255);
}

Best Practices

  • Use width: 40% to 60% for pie, doughnut, radar, and polarArea charts to prevent them from being too large
  • Set labelColors: true for pie, doughnut, and polarArea so each slice/segment gets a distinct color
  • Use beginAtZero: true for bar charts unless negative values are expected
  • Use tension: 0.2 to 0.4 for smooth but not overly curved lines
  • Use the chart YAML format for standard charts; use advanced-chart only when you need fine-grained Chart.js control (annotations, custom scales, per-point colors)
  • For mixed charts, set the base type to the most common series type, then override type on individual series
  • When referencing tables, prefer layout: columns (the more intuitive orientation)

Complete Examples

Monthly Performance Dashboard

type: bar
labels: [Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
series:
  - title: Revenue ($k)
    data: [42, 49, 53, 61, 58, 67, 72, 69, 78, 83, 91, 95]
  - title: Target ($k)
    data: [45, 45, 50, 55, 55, 60, 65, 65, 70, 75, 80, 85]
    type: line
    borderDash: [5, 5]
    fill: false
beginAtZero: true
xTitle: Month
yTitle: Revenue ($k)
legendPosition: bottom

Project Status Breakdown

type: doughnut
labels: [Complete, In Progress, Blocked, Not Started]
series:
  - title: Tasks
    data: [28, 12, 5, 15]
labelColors: true
width: 45%

Skill Assessment Radar

type: radar
labels: [Communication, Technical, Leadership, Problem Solving, Teamwork, Creativity]
series:
  - title: Self Assessment
    data: [75, 90, 60, 85, 80, 70]
  - title: Peer Review
    data: [80, 85, 70, 80, 90, 65]
rMin: 0
rMax: 100
width: 50%

Weekly Trend with Smoothing

type: line
labels: [Week 1, Week 2, Week 3, Week 4, Week 5, Week 6, Week 7, Week 8]
series:
  - title: Active Users
    data: [120, 135, 148, 142, 165, 178, 192, 210]
  - title: New Signups
    data: [30, 42, 38, 45, 50, 55, 48, 62]
tension: 0.3
fill: true
beginAtZero: true
yTitle: Count
legendPosition: bottom

References

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.