dataviz
它能做什么
它为图表、仪表板、地图和其他数据可视化提供设计指导,包括调色板检查工具。适合制作需要他人快速理解的可视化内容的人。
适用场景
- ✓当你即将制作一张图表、图形或仪表板时。
- ✓当你想检查某个调色板是否适合用于图表时。
- ✓当一张图表令人困惑,需要更清晰的形式或标签时。
技能链接
https://github.com/QwenLM/qwen-code/blob/main/packages/core/src/skills/bundled/dataviz/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请制作一张展示我们每月销售趋势的图表,并选择色盲人士也能看清的颜色。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体为该问题选择最简单的图表形式,把主要结论写入标题或注释,并借助验证脚本检查调色板。然后,它对照常见错误审查设计。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Dataviz
Use this skill before producing a chart, dashboard, map, or data visualization.
Workflow
- Identify the analytic task: comparison, trend, distribution, relationship, ranking, part-to-whole, geography, or status monitoring.
- Choose the simplest chart form that answers that task. Read
references/choosing-a-form.mdwhen the form is not obvious. - Write the finding into the title, subtitle, axis label, or direct annotation. A viewer should know what changed, what is high or low, or what decision the chart supports.
- Pick colors from
references/palette.md, or validate any custom palette with the script below. - Check
references/anti-patterns.mdbefore finalizing the design.
Palette Validation
Resolve paths relative to the skill base directory shown above this skill body.
Do not assume $QWEN_SKILL_ROOT is set for normal shell commands.
Run:
node <skill-base-directory>/scripts/validate_palette.js '#1d4ed8,#b45309,#166534' --mode light
Treat FAIL as a required palette change. Treat WARN as acceptable only when
the chart also uses labels, shape, texture, ordering, or another secondary
encoding.
Mark Rules
- Use categorical palettes for unordered groups; use sequential or diverging ramps only for ordered values.
- Prefer direct labels over legends when the chart has a small number of series.
- Keep gridlines subtle and fewer than the data marks.
- Avoid dual axes unless both series share a clearly explained transformation.
- Do not rely on color alone for critical distinctions.
- Keep dashboards scan-friendly: align cards, use consistent number formats, and reserve saturated color for important state changes.
常见问题
调色板检查做什么?
脚本会验证颜色,并报告通过或警告的结果,让你知道需要做哪些调色板修改。
它推荐哪些图表?
它会为任务推荐最简单的形式,例如比较、趋势、分布或部分与整体。
它自己绘制图表吗?
它指导设计选择,然后智能体按照这些规则构建可视化内容。
详情
作者的原始描述
Design guidance for charts, graphs, dashboards, maps, and data visualizations, including a local palette validator.
repo: QwenLM/qwen-code
热度
- GitHub 星标
- 29k
- 排名
- #9779
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
codegraph
29k帮你的智能体通过调用图、依赖关系、无用代码、热点和语义搜索来分析已建立索引的代码库。
qwen-code-claw
29k帮你的智能体把编程任务交给 Qwen Code,例如理解代码库、修复缺陷、重构代码或生成新项目。
structured-debugging
29k教你的智能体用一步一步的方法调试疑难缺陷:先提出假设,再添加有针对性的检查,验证后找出真正的原因,然后才修复。
tmux-real-user-testing
29k帮你的智能体在 tmux 中像真实用户一样测试终端应用,并为每一步操作保存带屏幕截图的可读步骤日志。