科研技能库/图表选择指南
图表可视化

图表选择指南

在创建图表、图形或仪表板时使用此技能。在编写任何绘图代码之前,选择最能传达数据关系的可视化类型。

文件预览

1 个文件
SKILL.md
875 B · 可预览
---
name: visualization-selection
description: Use this skill when creating charts, plots, or dashboards. Choose the visualization type that best communicates the data relationship before writing any plotting code.
category: data_analysis
---

# Visualization Selection Guide

| Goal | Chart Type |
|------|------------|
| Compare categories | Bar chart (horizontal if many labels) |
| Show distribution | Histogram, box plot, violin plot |
| Show trend over time | Line chart |
| Show correlation | Scatter plot, heatmap |
| Show part-to-whole | Pie (<=5 slices), stacked bar |

**Principles:**
- Label axes and include units.
- Use color purposefully — not just for decoration.
- Avoid 3D charts; they distort perception.
- Start y-axis at 0 for bar charts (truncated bars mislead).
- Use a colorblind-safe palette (e.g., `viridis`, `colorbrewer`).

SKILL.md

元数据
namevisualization-selection
description在创建图表、图形或仪表板时使用此技能。在编写任何绘图代码之前,选择最能传达数据关系的可视化类型。
categorydata_analysis

图表选择指南

目标图表类型
比较类别条形图(若标签较多则用水平)
显示分布直方图、箱线图、小提琴图
显示随时间变化的趋势折线图
显示相关性散点图、热力图
显示部分与整体饼图(≤5 个扇区)、堆叠条形图

原则:

  • 标注坐标轴并包含单位。
  • 有目的地使用颜色——不仅是为了装饰。
  • 避免使用 3D 图表;它们会扭曲感知。
  • 条形图的 y 轴从 0 开始(截断的条形图会误导)。
  • 使用色盲友好的调色板(例如 viridis、colorbrewer)。