Skills

Data Viz Renderer

Generate self-contained HTML/SVG infographics from JSON data, including stat cards, bar...

Install

npx skills add zebbern/claude-code-guide --skill data-viz-renderer -g -a claude-code -y
Category
Engineering
Updated
4d ago
License
MIT
Context cost
Lightabout 1,228 tokens
Runs scripts
Yes, review before use

What it does

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.

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

python3 scripts/build_infographic.py config.json

Also supports reading from stdin:

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:

FieldTypeRequiredDescription
titlestringNoInfographic title
subtitlestringNoSubtitle
typestringYesstats / comparison / flow / dashboard
palettestringNoColor palette (default: auto)
dataobject/arrayYesData content (format depends on type)
outputstringNoOutput file path (default: infographic.html)
footerstringNoFooter 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

{
  "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"
    }
  ]
}
Read the whole SKILL.md on GitHub

More in Engineering