/design-engine:chart-selection-and-encodingfrom design-engine
Guides chart type selection based on data type and message (comparison, trend, distribution, etc.) and verifies honest encoding, zero baselines, and accessibility.
Ships in design-engine. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Before any decluttering or colour craft, one decision dominates everything downstream:
which chart type does this data and this message actually call for? A beautifully
decluttered pie chart is still the wrong chart. This skill routes data-type × message to a
concrete chart type, then verifies the encoding is honest (zero baselines, no dual-axis
fabrication) and accessible (non-colour cues, contrast, text alternatives). It is the upstream
selection decision; the sibling data-visualization owns the downstream craft of drawing the
chart you picked.
data-visualization (it owns the six lessons, the Cleveland–McGill perceptual
ranking in references/chart-encoding.md, and the per-chart checklist).dashboard-and-data-product-design.color-system-and-palette.| Input | Source | Required? | Evidence |
|---|---|---|---|
| Decision question, audience, and intended comparison | Analyst or decision owner | yes | One-sentence message |
| Data types, grain, units, ranges, and uncertainty | Validated dataset | yes | Field profile and quality notes |
| Medium and accessibility constraints | Delivery owner | yes | Size, interaction, colour, and assistive requirements |
doctrine/design-doctrine.md §2,
state the chosen chart and why it fits this message before drawing anything.references/chart-fit-decision.md and use
its routing table to land on a concrete chart (e.g. ranked comparison of categories →
sorted horizontal bar; trend of one continuous series → line; part-to-whole →
100% stacked bar or sorted bar, never pie). The table also lists the banned defaults
and their correct replacements.data-visualization/references/chart-encoding.md §1 — cite it, don't restate it. If your
chosen type pushes the key comparison onto angle/area (pie, donut, 3-D), re-route in step 2.doctrine/references/wcag-2.2-criteria.md, and the chart a11y
floor in data-visualization/references/chart-encoding.md §5):
alt/caption (the action title seeds it) + ideally a
backing data table (1.1.1); interactive points keyboard-reachable, name/role/value (4.1.2),
targets ≥ 24×24px (2.5.8); honour prefers-reduced-motion; usable at 320px / 200% zoom.| Condition | Encoding choice | Wrong-choice failure |
|---|---|---|
| A series of related charts shows the same measure (districts, quarters, products) | Lock the same axis maximum and scale across the whole series | Auto-scaled axes make unequal values look equal and mislead readers |
| Pictograms or icons stand for quantities | Size or count symbols to the true values, never by area guesswork | Symbol area exaggerates differences |
| Compare magnitudes | Common-baseline position or sorted bars | Area/angle impairs comparison |
| Show change over ordered time | Line or aligned small multiples | Categories imply false continuity |
| Show distribution | Histogram, box, violin, or dot plot | Averages hide spread and outliers |
| Scales or units differ | Separate aligned panels | Dual axes manufacture correlation |
Read and search are required for data definitions and delivery constraints. Editing is allowed only when chart production is requested. Execution is required for calculations and rendering claims; publication requires separate authority.
If required evidence or tooling is unavailable, use the scoped fallback below and mark the result unverified. Without validated data, produce a conditional chart recommendation using a labelled schema. Stop before final encoding when units, grain, or decision question are unknown; mark all unrendered accessibility and scale checks unverified.
ai-slop-taxonomy.md "dashboard decoration").| Artefact | Consumer | Evidence and acceptance condition |
|---|---|---|
| Chart-selection decision record | Analyst and designer | Message, data relationship, chosen chart, and rejected alternatives are explicit |
| Encoding and scale specification | Chart implementer | Channels, axes, units, uncertainty, and accessibility cues are defined |
| Integrity check record | Reviewer | Baselines, denominators, missingness, colour, and labels pass or are flagged |
data-visualization for
the drawing craft.examples/chart-selection-cases.md — six worked good/bad selection cases, one per message-type
(ranking pie→sorted bar; trend dual-axis→split panels; distribution stacked-bar→histogram/box;
part-to-whole pie→100% stacked bar; relationship grouped-bar→scatter; geographic 3-D map→
choropleth), each routed through the data-type × message logic with the honesty and a11y
reasoning. Copy the reasoning pattern, never the numbers. Never lorem.chwezi-reporting-and-dashboards-standard (binding for Chwezi reporting surfaces: chart choice by question, greyscale-legible print charts, data-table alternative, no 3D).
skills/09-design-systems-tokens-and-theming/component-library-architecture/references/design-system-operating-model.md §7 (after Knaflic, Storytelling with Data) — audience/action framing, Big Idea, decluttering, direct labelling, and text-alternative requirements.
doctrine/design-doctrine.md — the Mission (authored, human-made charts) and the Anti-Slop
Charter; the chart type is a stated, defensible choice, never a reflexive default.
doctrine/references/wcag-2.2-criteria.md — the accessibility floor (contrast, 1.4.1 use of
colour, target size, reflow, reduced-motion) every chosen chart must clear.
doctrine/references/ai-slop-taxonomy.md — the chart-junk / "dashboard decoration" tells (3-D,
gauges, rainbow, donut) this skill routes away from.
Sibling — 12-data-viz-and-dashboards/data-visualization — owns the single-chart craft:
the Cleveland–McGill perceptual ranking (references/chart-encoding.md), decluttering, the
grey-base + one-accent colour rule, preattentive hierarchy, annotation craft, and Knaflic's six
lessons. This skill owns the chart-TYPE selection that comes first; cite that ranking,
don't restate it, and hand off the chosen type for drawing.
Sibling — 12-data-viz-and-dashboards/dashboard-and-data-product-design — owns page-level
composition (KPI tiers, zoning, drill-down, cross-filter, real-time UX) above the single chart.
references/chart-fit-decision.md — the data-type × message → chart-type routing table, the
banned-default → replacement map, and the selection decision checklist.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
chart-selection, encoding, data-visualization, accessibility
Other plugins' skills for the same job
npx claudepluginhub peterbamuhigire/chwezi-design-engine --plugin design-engine110 skills in this plugin
/accessibility-wcag-2-2-complianceUse when designing or auditing an interactive UI for WCAG 2.2 AA, keyboard and focus behaviour, accessible names, screen readers, target size, reflow, authentication, or reduced motion. Use inclusive-and-assistive-design for needs beyond the compliance floor./accessible-color-and-contrastUse when verifying or fixing text, UI, focus, border, status, or data colours for contrast and colour-vision accessibility. Unlike color-system-and-palette, this is the focused WCAG/APCA and non-colour-cue gate, not palette creation./advertising-creative-art-directionUse when art-directing advertising or campaign creative - copy and image relationships, poster and cover tests, triplet or cousin campaign systems, big-idea tests across channels, a 7-point effectiveness screen, critique and ad layout specs handed back to the marketing engine. Use art-direction-routes for brand or website directions./ai-agent-uxUse when an AI agent or copilot interface needs status, plans, approvals, uncertainty, interruption, or trust controls across web or mobile. Do not use for formatting a single AI answer; route output structure and citations to ai-output-design./ai-image-generation-art-directionUse when turning an art-direction brief into generated imagery, prompts, negative constraints, reject gates, provenance notes, and post-processing instructions. Use photography-art-direction for sourced photos and visual-product-slop-audit for product-wide review./ai-output-designUse when an AI answer surface needs structure, citations, grounding, editable refinement, or a chat-versus-canvas decision. Do not use for agent autonomy, approvals, or execution status; route those interaction controls to ai-agent-ux.