·vega

使用 Vega-Lite(简单)和 Vega(高级)创建数据驱动的图表。最适合条形图、折线图、散点图、热图、面积图和多系列分析。当您有需要统计可视化的数值数据数组时使用。 Vega 用于雷达图和文字云。不适用于流程图(使用美人鱼)或快速 KPI 卡(使用信息图)。

8安装·0热度·@xicilion

安装

$npx skills add https://github.com/xicilion/markdown-viewer-extension --skill vega

SKILL.md

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.

| Chart not rendering | Check JSON validity, verify $schema | | 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 resolve: {scale: {y: "independent"}} |

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

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/xicilion/markdown-viewer-extension --skill vega
分类
{}数据分析
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 vega?

使用 Vega-Lite(简单)和 Vega(高级)创建数据驱动的图表。最适合条形图、折线图、散点图、热图、面积图和多系列分析。当您有需要统计可视化的数值数据数组时使用。 Vega 用于雷达图和文字云。不适用于流程图(使用美人鱼)或快速 KPI 卡(使用信息图)。 来源:xicilion/markdown-viewer-extension。

如何安装 vega?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/xicilion/markdown-viewer-extension --skill vega 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/xicilion/markdown-viewer-extension

详情

分类
{}数据分析
来源
skills.sh
收录时间
2026-02-01