Loading...
Loading...
Create data-driven charts with Vega-Lite (simple) and Vega (advanced). Best for bar, line, scatter, heatmap, area charts, and multi-series analytics. Use when you have numeric data arrays needing statistical visualization. Vega for radar charts and word clouds. NOT for process diagrams (use mermaid) or quick KPI cards (use infographic).
npx skill4agent add markdown-viewer/skills vega```vega-lite```vega$schema"$schema": "https://vega.github.io/schema/vega-lite/v5.json"❌ {field: "x",} → Trailing comma, unquoted key
✅ {"field": "x"} → Proper JSON❌ "field": "Category" when data has "category"
✅ "field": "category" → Case-sensitive match✅ quantitative | nominal | ordinal | temporal
❌ numeric | string | date| Issue | Solution |
|---|---|
| Chart not rendering | Check JSON validity, verify |
| Data not showing | Field names must match exactly |
| Wrong chart type | Match mark to data structure |
| Colors not visible | Check color scale contrast |
| Dual-axis issues | Add |
```vega-lite
{...}
``````vega
{...}
```For advanced chart patterns and complex visualizations, refer to references below: