V

vega

by @markdown-viewerv
4.5(437)

Vega/Vega-Lite is a powerful data visualization tool that enables you to quickly generate various data-driven charts like bar, line, scatter, and heatmaps using concise JSON configurations. It's ideal for statistical analysis of numeric data arrays and complex visualizations such as radar charts and word clouds, significantly enhancing data insights.

data-visualizationchartingvega-litedata-analysisjsonGitHub
Installation
npx skills add markdown-viewer/skills --skill vega
compare_arrows

Before / After Comparison

1
Before

Previously, creating complex data charts involved manual adjustments in spreadsheet software or writing lengthy code, which was time-consuming, error-prone, and difficult to maintain consistent chart styles, especially with multi-series data.

After

With Vega/Vega-Lite, professional and highly customizable data charts can be generated quickly using structured JSON configurations. Chart styles are consistent, modifications are easy, significantly reducing the time from data to visualization.

description SKILL.md

Vega / Vega-Lite Visualizer

Quick Start: Structure data as array of objects → Choose mark type (bar/line/point/area/arc/rect) → Map encodings (x, y, color, size) to fields → Set data types (quantitative/nominal/ordinal/temporal) → Wrap in ```vega-lite or ```vega fence. Always include $schema, use valid JSON with double quotes, field names are case-sensitive. Use Vega-Lite for 90% of charts; Vega only for radar, word cloud, force-directed.


Critical Syntax Rules

Rule 1: Always Include Schema

"$schema": "https://vega.github.io/schema/vega-lite/v5.json"

Rule 2: Valid JSON Only

❌ {field: "x",}     → Trailing comma, unquoted key
✅ {"field": "x"}    → Proper JSON

Rule 3: Field Names Must Match Data

❌ "field": "Category"  when data has "category"
✅ "field": "category"  → Case-sensitive match

Rule 4: Type Must Be Valid

✅ quantitative | nominal | ordinal | temporal
❌ numeric | string | date

Common Pitfalls

IssueSolution
Chart not renderingCheck JSON validity, verify $schema
Data not showingField names must match exactly
Wrong chart typeMatch mark to data structure
Colors not visibleCheck color scale contrast
Dual-axis issuesAdd resolve: {scale: {y: "independent"}}

Output Format

```vega-lite
{...}
```

Or for full Vega:

```vega
{...}
```

Related Files

For advanced chart patterns and complex visualizations, refer to references below:

  • examples.md — Stacked bar, grouped bar, multi-series line, area, heatmap, radar (Vega), word cloud (Vega), and interactive chart examples

forumUser Reviews (0)

Write a Review

Effect
Usability
Docs
Compatibility

No reviews yet

Statistics

Installs9.3K
Rating4.5 / 5.0
Version
Updated2026年4月29日
Comparisons1

User Rating

4.5(437)
5
65%
4
25%
3
6%
2
3%
1
1%

Rate this Skill

0.0

Compatible Platforms

🤖claude-code

Timeline

Created2026年4月12日
Last Updated2026年4月29日
🎁 Agent Knowledge Cards