AppleHIG图表

AyushRajSinghParihar2026-10-27查看 1482复制 141

在设计、检查或调整图表的标记、比例、注释、选择或可访问的数据表示时使用。

Download (.md)

📘如何使用这个技能

  1. 1
    复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
  2. 2
    打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
  3. 3
    粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
  4. 4
    直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景

💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。

SKILL.md2842 chars
---
name: apple-hig-charts
description: Use when designing, reviewing, or adapting a chart's marks, scales, annotations, selection, or accessible data representation.
---

# Make the chart answer its question

Read [the chart guide](../../references/charts.md). The workflow below is application advice; distinguish its recommendations from the documented platform behavior.

Inspect the actual dataset and chart artifact, target platform, audience question, and requested create/review/adapt mode. Record units, missing observations, bounds, series, and any aggregation. Do not infer data accuracy from a screenshot or report invented outliers.

Choose marks from the comparison: bars for comparable quantities, lines for ordered time trends, points for individual observations/relationships. Decide scale and baseline together: bar lengths normally require zero; a meaningful variation far above zero can justify a bounded line scale with explicit bounds. Use fixed limits for inherently bounded quantities and dynamic limits only when their changing frame will remain understandable. Show the takeaway in words before requiring exploration.

Implement the chart or produce a concrete mark/axis/label specification; in review, attach corrections to the affected series, axis, or interaction. Add units, dates, and objective accessible values. Distinguish series beyond color and keep stacked segments separable. If tiny marks are hard to select, enlarge the interaction region or let selection scrub the plot. Define logical keyboard/assistive traversal and grouped detail for dense data. On watchOS, favor a glance and move extensive exploration to an available companion; do not promise Audio Graphs from an arbitrary framework merely because Swift Charts supplies defaults.

**Worked transformation:** Before: a monthly electricity chart uses truncated bars, unexplained red/green series, and no units. Decision: comparing consumed quantities requires honest lengths and noncolor identification. After: zero-baseline bars labeled in kWh, patterned/labelled household versus solar series, and a written monthly total; exact values are available through plot selection and accessible descriptions.

Deliver the edited artifact plus its question, scale rationale, and accessible overview. Verify against real rows, missing values, narrow widths, and selected points. Fail for misleading bar lengths, unlabeled units/bounds, lost series meaning without color, or critical facts available only by touch. Separate inspected accessibility structure from device/VoiceOver/Audio Graphs execution.

For analysis and dataset framing load [charting-data](../../../apple-hig-patterns/.topics/apple-hig-charting-data/SKILL.md); for broader access failures load [accessibility](../../../apple-hig-foundations/.topics/apple-hig-accessibility/SKILL.md).
来源:skillsdirectory

评论0

登录后参与评论

还没有评论,来抢沙发吧