visualize

Solid

Trigger on: chart, plot, visualize data, bar chart, line chart, scatter plot, pie chart, line graph, Vega-Lite, make a chart from CSV/JSON/table. Generates charts (bar, line, scatter, pie) from CSV, JSON, or pasted tabular data using Vega-Lite, with automatic column-type detection and chart-type recommendation. Use when the user wants a data visualization from a table or file — not for architecture/sequence diagrams (use diagram), network graphs, or design/art images.

Data & Documents 1 stars 0 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 78/100

Stars 20%
10
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Data Visualization Creator Generate plots/charts/graphs from CSV or JSON via `vl2svg` (Vega-Lite), with column-type detection and chart-type recommendation. ## When to use - User wants a **chart/plot/graph** from tabular data (file or pasted table). - Do **not** use for architecture/sequence diagrams → `diagram`. - Do **not** use for generative art, posters, or non-data images. ## Prerequisites - `python3` and this skill's `main.py` (path: skill directory next to this file). - `vl2svg` on PATH: `npm install -g vega-cli vega-lite`. - Files ≥10MB also need `duckdb` on PATH. ## Procedure Work phases in order. Do not skip. Do not invent column names — only use fields from `analyze` output (or exact user overrides that exist in that output). ### Phase 1 — Materialize data 1. If data is already a file path the user gave, use it as `--data_path`. 2. If the user pasted a table / inline JSON/CSV, write it to a file in the **session scratch directory** (temp). Do not write into the project working directory unless the user explicitly asks to save there. 3. Completion: a real filesystem path exists and is readable. ### Phase 2 — Analyze 1. Run (from skill dir or with absolute path to `main.py`): ```bash python3 <skill-dir>/main.py analyze --data_path <path> ``` 2. Read the JSON stdout. On `"status": "error"`, report `reason` and STOP (or fix path/format and re-run once). 3. Note `recommended_chart_type`, `recommended_x`, `recommended_y`, column `type`...

Details

Author
tkolleh
Repository
tkolleh/skills
Created
3 months ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category