# svg-visuals

svg-visuals builds inline SVG charts in Power BI PBIR reports using DAX formulas. Handy for rendering sparklines, bullet bars, and gauges inside tables or card visuals.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 1104 repo stars
- Author: Kurt Buhler
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/data-goblin/power-bi-agentic-development/tree/HEAD/plugins/custom-visuals/skills/svg-visuals/SKILL.md
- Updated: 2026-10-28
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/svg-visuals

## What it does

The skill drafts vector visualizations directly inside Power BI by packaging SVG code into DAX measures tagged with the `ImageUrl` data category. Output strings begin with the `data:image/svg+xml;utf8,` payload header. Power BI then treats these strings as embedded images in tables, matrix views, new cards, and button slicers. Changes are written into `reportExtensions.json` as report-level extension measures.

Work relies on the `pbir` CLI tool for report mutations. The skill prefers reusing existing user-defined DAX libraries like `PowerofBI.IBCS` or `DaxLib.SVG` instead of coding graphics manually. When a custom shape is required, it builds a formula structured with separated `VAR` blocks for scaling and geometry.

Color formatting has strict rules. Every fill and stroke must rely on plain hex values starting with `#`, because named color tokens or `%23` URL escaping cause rendering failures.

## Requirements
- Works with: Power BI

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add data-goblin/power-bi-agentic-development
```
In the agent chat (not a shell):
```text
/plugin install custom-visuals@power-bi-agentic-development
```
This installs the whole custom-visuals plugin with all its skills

2. **Skills CLI (Vercel)**
```bash
npx skills add data-goblin/power-bi-agentic-development --skill svg-visuals -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/svg-visuals/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/svg-visuals/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add data-goblin/power-bi-agentic-development --skill svg-visuals -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/svg-visuals/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add data-goblin/power-bi-agentic-development --skill svg-visuals -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/svg-visuals/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install data-goblin/power-bi-agentic-development plugins/custom-visuals/skills/svg-visuals
```

2. **Manually: put the files in place**
- File: `.github/skills/svg-visuals/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add data-goblin/power-bi-agentic-development --skill svg-visuals -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/data-goblin/power-bi-agentic-development --path plugins/custom-visuals/skills/svg-visuals
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/svg-visuals/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/data-goblin/power-bi-agentic-development/tree/HEAD/plugins/custom-visuals/skills/svg-visuals/SKILL.md

## When to use it
- Add inline sparklines or bullet charts into Power BI matrix cells
- Configure dynamic vector artwork for new button slicers
- Create an `ImageUrl` extension measure inside `reportExtensions.json`
- Bind custom KPI gauges to new card visuals using the `pbir` CLI

## Example prompts
- Generate a DAX sparkline measure for the sales table in my PBIR report
- Create an inline SVG progress bar measure with ImageUrl data category
- Add a bullet chart extension measure for the new card visual

## Similar
- [Horizun PBI MCP](https://affpapa.org/en/nevibecode/mcp/horizun-pbi-mcp.md) — MCP server · ★ 34 repo stars
- [power-bi-development](https://affpapa.org/en/nevibecode/plugins/power-bi-development.md) — plugin · ★ 41430 repo stars
- [powerbi-modeling](https://affpapa.org/en/nevibecode/skills/powerbi-modeling.md) — skill · 9934 installs
- [power-bi-retail-analytics-salespulse360](https://affpapa.org/en/nevibecode/skills/power-bi-retail-analytics-salespulse360.md) — skill · 659 installs
- [power-bi-salespulse-dashboard](https://affpapa.org/en/nevibecode/skills/power-bi-salespulse-dashboard.md) — skill · 658 installs
- [DAX Terminal](https://affpapa.org/en/nevibecode/prompts/dax-terminal.md) — prompt · ★ 178201 repo stars

From the same set: [data-goblin/power-bi-agentic-development](https://affpapa.org/en/nevibecode/by/data-goblin/power-bi-agentic-development.md) — 59 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
