Skip to main content
skill CX Codex

data-viz-renderer — Claude Code skill: visualizations and setup

Turn JSON data into standalone HTML/SVG infographics, from metric cards to process diagrams. Use it to build report visuals or combine metrics and charts in a dashboard.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add zebbern/claude-code-guide --skill data-viz-renderer -a claude-code
Open on GitHub

What data-viz-renderer does

The skill writes a self-contained HTML file with inline CSS and SVG, ready to open in a browser without network access. It supports metric cards, grouped bar charts, process diagrams, and mixed dashboards. Choose from eight color palettes or let the tool select one; metric cards can use built-in icons.

You need Python 3.7+ and a JSON configuration containing the visualization type and data. Run scripts/build_infographic.py with a config path or pipe JSON through stdin; set the destination with the output field, which defaults to infographic.html. Check the Python version first: the script requires Python 3.7+. It uses the standard library, so no external packages need installation.

What it helps with

  • turn JSON data into a standalone HTML infographic
  • show metrics and trends in stat cards
  • compare data series in a grouped bar chart
  • map process stages with connecting arrows
  • combine metrics and charts in a dashboard

Example prompts for the agent

  • Build a dashboard from the metrics in metrics.json with scripts/build_infographic.py.
  • Turn this JSON into a grouped bar chart comparing the quarterly figures.
  • Create an HTML process diagram from the stages in workflow.json.

How to install data-viz-renderer

1Skills CLI (Vercel)

npx skills add zebbern/claude-code-guide --skill data-viz-renderer -a claude-code

2Manually: put the files in place

~/.claude/skills/data-viz-renderer/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/data-viz-renderer/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about data-viz-renderer

How do I install data-viz-renderer in Claude Code?

Run npx skills add zebbern/claude-code-guide --skill data-viz-renderer -a claude-code. The skill is installed at ~/.claude/skills/data-viz-renderer/SKILL.md.

What does data-viz-renderer do?

It generates standalone HTML/SVG visuals from JSON, including metric cards, comparison charts, process diagrams, and mixed dashboards.

What does data-viz-renderer need to run?

It requires Python 3.7+ and uses the Python standard library. You can pass the configuration as a file or through stdin.

Source text

SKILL.md · MIT
---
name: data-viz-renderer
description: "Generate self-contained HTML/SVG infographics from JSON data, including stat cards, bar charts, flow diagrams, and mixed dashboards. Offers 8 color palettes and built-in icons with no external dependencies. Triggered when users request data visualization, infographics, charts, or dashboards."
license: MIT
type: tool
tags: ["infographic", "visualization", "svg", "html", "chart", "dashboard"]
---

# Data Viz Renderer

Generate self-contained HTML/SVG infographics from JSON data. Four supported types:

1. **Stats Cards** — KPI big numbers + trend arrows + icons
2. **Comparison Chart** — Grouped bar chart with multiple series
3. **Flow Diagram** — Step-by-step process with numbering, icons, and connecting arrows
4. **Dashboard** — Mixed layout: stat cards + bar chart + donut chart + flow

Output is a **fully self-contained** HTML file (all CSS/SVG inline, no external dependencies), ready to open directly in a browser.

## Usage

### Basic Usage

```bash
python3 scripts/build_infographic.py config.json
```

Also supports reading from stdin:

```bash
cat config.json | python3 scripts/build_infographic.py
```

The script outputs a JSON status to stdout and writes the generated HTML to the path specified in the `output` field.

### JSON Configuration Format

Common fields:

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `title` | string | No | Infographic title |
| `subtitle` | string | No | Subtitle |
| `type` | string | Yes | `stats` / `comparison` / `flow` / `dashboard` |
| `palette` | string | No | Color palette (default: `auto`) |
| `data` | object/array | Yes | Data content (format depends on type) |
| `output` | string | No | Output file path (default: `infographic.html`) |
| `footer` | string | No | Footer text |

### Color Palettes

Available values: `auto` (automatically chosen based on data), `ocean`, `sunset`, `forest`, `berry`, `vibrant`, `corporate`, `pastel`, `earth`

### Data Format by Type

#### 1. stats — Stat Cards

```json
{
  "type": "stats",
  "data": [
    {
      "label": "Total Revenue",
      "value": "$1.2M",
      "icon": "money",
      "trend": "+12.5%",
      "trend_dir": "up"
    },
    {
      "label": "Users",
      "value": "45,230",
      "icon": "users",
      "trend": "+8.2%",
      "trend_dir": "up"
    }
  ]
}
```

**icon** options: `users`, `user`, `money`, `percent`, `globe`, `clock`, `check`, `star`, `target`, `zap`, `chart-bar`, `chart-pie`, `database`, `rocket`, `shield`, `heart`, `light`, `search`, `mail`, `settings`, `flag`, `trending-up`, `trending-down`

**trend_dir**: `up` (green upward arrow) or `down` (red downward arrow)

#### 2. comparison — Bar Chart Comparison

```json
{
  "type": "comparison",
  "data": {
    "chart_title": "Quarterly Revenue Comparison",
    "categories": ["Q1", "Q2", "Q3", "Q4"],
    "series": [
      {"name": "2024", "values": [320, 410, 380, 520]},
      {"name": "2025", "values": [380, 490, 450, 610]}
    ]
  }
}
```

#### 3. flow — Flow Diagram

```json
{
  "type": "flow",
  "data": [
    {"step": 1, "title": "Requirements", "description": "Gather user needs", "icon": "search"},
    {"step": 2, "title": "Design", "description": "Create technical plan", "icon": "light"},
    {"step": 3, "title": "Development", "description": "Code and test", "icon": "settings"},
    {"step": 4, "title": "Launch", "description": "Deploy to production", "icon": "rocket"}
  ]
}
```

#### 4. dashboard — Mixed Dashboard

```json
{
  "type": "dashboard",
  "data": {
    "stats": [
      {"label": "DAU", "value": "12.3K", "icon": "users", "trend": "+5%", "trend_dir": "up"},
      {"label": "Conversion Rate", "value": "3.8%", "icon": "target", "trend": "-0.2%", "trend_dir": "down"}
    ],
    "chart": {
      "chart_title": "Monthly Trend",
      "categories": ["Jan", "Feb", "Mar", "Apr"],
      "series": [{"name": "DAU", "values": [10200, 11500, 11800, 12300]}]
    },
    "breakdown": [
      {"label": "iOS", "value": 45},
      {"label": "Android", "value": 38},
      {"label": "Web", "value": 17}
    ],
    "flow": [
      {"step": 1, "title": "Sign Up", "description": ""},
      {"step": 2, "title": "Activate", "description": ""},
      {"step": 3, "title": "Retain", "description": ""}
    ]
  }
}
```

## Output Format

The script outputs a JSON result to stdout:

```json
{
  "status": "success",
  "output": "/absolute/path/to/infographic.html",
  "type": "stats",
  "title": "My Infographic",
  "palette": "auto",
  "size_bytes": 8432
}
```

On error:

```json
{
  "status": "error",
  "errors": ["Missing required field: data"]
}
```

## Design Highlights

- **Zero external dependencies**: Pure Python standard library, no pip install needed
- **Self-contained output**: HTML with all CSS and SVG inline, no network required
- **Responsive layout**: Works on both desktop and mobile browsers
- **Professional palettes**: 8 preset color schemes + automatic selection
- **24+ built-in icons**: Common SVG icons, no font files needed
- **CJK-friendly**: Font stack includes Noto Sans SC, PingFang SC, Microsoft YaHei

## Use Cases

- Visualization modules in data reports
- Product data dashboards
- Business process illustrations
- Quarterly/monthly data comparisons
- Team KPI displays

## Dependencies

- Python 3.7+ (standard library only)

© zebbern · MIT · zebbern/claude-code-guide

Similar skills

All skills for Data and databases →

From the same set24

file-path-traversal This skill guides directory traversal and LFI checks in web apps. Use it when a request may expose files beyond the intended web root. CX Codex +1 ★ 4,679repo stars dev-guide-generator Turns a technical topic into a full tutorial: prerequisites, environment setup, core steps, error troubleshooting and a closing cheatsheet. CX Codex +1 ★ 4,679repo stars dataset-quality-audit Audit tabular files for missing values, duplicates, outliers, and format problems. Use it to assess a dataset before analysis or reuse. CX Codex +1 ★ 4,679repo stars database-scout A read-only skill for SQLite and PostgreSQL: lists tables, inspects schemas, previews rows and renders Mermaid ER diagrams. Queries stay read-only. CX Codex +1 ★ 4,679repo stars cv-tailor This skill compares your resume against a job description, scores keyword coverage, and rewrites experience bullets with STAR and numbers. CX Codex +1 ★ 4,679repo stars code-documenter A skill that writes docstrings, builds OpenAPI specs and documentation sites. Useful when the code works but nobody documented it. CX Codex +1 ★ 4,679repo stars caching Use this skill to plan or review caching, from TTL choices and cache keys to invalidation. It fits work on API, service, and client-side caches. CX Codex +1 ★ 4,679repo stars aws-penetration-testing A skill that walks the agent through AWS pentesting: IAM enumeration, privilege escalation, metadata SSRF, S3 and Lambda exploitation. CX Codex +1 ★ 4,679repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor