/design-engine:data-visualizationfrom design-engine
Crafts and reviews individual charts for perceptual accuracy, decluttering, annotation, accessibility, and narrative focus. Applies Cleveland-McGill encoding principles, WCAG compliance, and Knaflic's storytelling arc.
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.
Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com, +256 784 464178.
12-data-viz-and-dashboards/dashboard-and-data-product-design; this skill owns the single chart inside a tile.02-color-brand-and-visual-identity/color-system-and-palette; this skill only consumes them.03-layout-grid-and-composition/layout-grid-and-spacing.| Input | Source | Required? | Evidence |
|---|---|---|---|
| Decision question, audience, and key message | Analyst or decision owner | yes | One-sentence takeaway |
| Validated data, definitions, units, and uncertainty | Data owner | yes | Source and quality notes |
| Chosen chart type and delivery medium | chart-selection-and-encoding and publisher | yes | Selection record and size constraints |
| Condition | Craft choice | Wrong-choice failure |
|---|---|---|
| One series carries the message | Emphasise it and mute context | Equal visual weight obscures the takeaway |
| Exact lookup matters more than pattern | Add a table or direct values | A chart forces imprecise reading |
| Uncertainty affects the decision | Encode interval/range and explain it | Point estimates imply false certainty |
| Narrow viewport | Recompose, simplify, or provide scroll/table alternative | Mechanical shrinking destroys legibility |
Read and search are required for data, definitions, sources, and medium constraints. Editing is allowed only for requested production. Calculation and rendering are required for accuracy, accessibility, and responsive 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, deliver a labelled specification or placeholder, not a factual chart. Without rendering, provide chart source and exact checks, mark the result unverified, and block publication where distortion or accessibility risk is material.
| Artefact | Consumer | Evidence and acceptance condition |
|---|---|---|
| Decision-ready chart or analytical exhibit | Decision audience | Intended takeaway is accurate and identifiable without narration |
| Source, definition, annotation, and accessibility package | Publisher and reviewer | Units, provenance, uncertainty, text alternative, and colour-independent cues are present |
| Render and integrity evidence | QA and release owner | Target-size, responsive, contrast, and scale checks pass or are marked unverified |
doctrine/design-doctrine.md — the Mission and Anti-Slop Charter; charts must be authored and clutter-free, never decorative chart-junk.doctrine/references/ai-slop-taxonomy.md — the "dashboard decoration" / chart-junk tells (3D, gauges, rainbow palettes) this skill rejects.03-layout-grid-and-composition/layout-grid-and-spacing for the grid, alignment, and spacing rhythm that exhibits sit on (this skill's alignment and white-space rules inherit from it).02-color-brand-and-visual-identity/color-system-and-palette for the categorical/sequential colour scales and the WCAG contrast gate the "grey base + one accent" rule depends on.references/chart-encoding.md (the perceptual-accuracy ranking + the accessible-chart floor — load whenever choosing or reviewing an encoding), references/dashboard-patterns.md (per-chart behaviour inside a dashboard tile; page-level layout/drill/real-time is the sibling dashboard-and-data-product-design), references/analytics-dashboard-decision-story.md, references/responsive-mobile-charts.md, references/svg-css-js-implementation.md. The book sources are listed in the References block below.12-data-viz-and-dashboards/dashboard-and-data-product-design owns page-level dashboard design (zone sequence, layout archetypes, KPI tiering, drill-down, cross-filtering, real-time UX). This skill owns the individual chart; defer page composition to it.Source: Storytelling with Data by Cole Nussbaumer Knaflic (Wiley, 2015)
These two standards sit underneath Knaflic's lessons and make them non-negotiable. Full
treatment + checklists in references/chart-encoding.md.
Encode the most important quantity in the most accurately decoded channel available. Ranked most → least accurate: position on a common scale → length → angle/slope → area → 3-D volume → colour intensity → colour hue. Operational rules:
doctrine/references/wcag-2.2-criteria.md)color-system-and-palette.alt (the action title is
its seed) and ideally a backing data table (1.1.1); interactive points are keyboard-reachable
with name/role/value (4.1.2) and ≥ 24×24px (2.5.8); animation honours prefers-reduced-motion
and never flashes >3×/s; usable at 320px / 200% zoom.| Question | Detail |
|---|---|
| Who | Specific audience + your relationship with them. Narrow the audience — avoid "internal and external stakeholders." Identify the decision maker. |
| What | What must they know or DO? Always recommend an action. Even if uncertain, suggest possible next steps — gives audience something to react to. |
| How | Only AFTER who + what: what data supports your case? Data = supporting evidence. |
| Visual Type | Use When |
|---|---|
| Simple text | 1-2 numbers to communicate. Make the number BIG with supporting words. Do NOT put 1-2 numbers in a chart. |
| Table | Mixed audience seeking their own row; multiple units of measure. AVOID in live presentations. |
| Heatmap | Table + visual cues via colour saturation. Always include a legend. |
| Line graph | Continuous data (usually time). Single, two, or multiple series. Consistent intervals on x-axis are mandatory. |
| Slopegraph | Two time periods or comparison points. Shows absolute values + rate of change intuitively. |
| Vertical bar | Categorical data, single/two/multiple series. More series = harder to read. |
| Stacked vertical bar | Compare totals + subcomponents. Hard to compare non-bottom series. Use sparingly. |
| Waterfall chart | Starting point — increases — decreases — ending point. |
| Horizontal bar | Go-to for categorical data. Easy to read: labels left-to-right, eyes hit category names before data (z-pattern). |
| Stacked horizontal bar | Parts of whole, negative-to-positive scale (e.g., Likert survey data). |
| 100% stacked bar | Proportions summing to 100%. Consider also showing absolute totals. |
| Square area graph | Only for numbers of vastly different magnitudes. Avoid all other area graphs. |
| Scatterplot | Relationship between two variables. Encode data on x and y simultaneously. |
| Avoid | Why |
|---|---|
| Pie charts | Humans cannot accurately compare angles/areas. Even with labels, not worth the space. Replace with horizontal bar chart sorted by value. |
| Donut charts | Even worse — comparing arc lengths is harder than angles. |
| 3D charts | NEVER use 3D. Skews perception, adds chart junk (side/floor panels). Only exception: actually plotting a third dimension. |
| Secondary y-axis | Confusing — audience must figure out which data maps to which axis. Alternatives: (1) label second series directly, (2) pull into separate graph sharing the same x-axis. |
| Principle | Rule | Chart Application |
|---|---|---|
| Proximity | Close objects = same group | Use spacing in tables to guide eyes to rows or columns |
| Similarity | Same colour/shape/size = related | Colour rows to guide reading direction; no borders needed |
| Enclosure | Objects in same area = group | Light background shading to separate forecast from actual |
| Closure | Brain fills in gaps | Remove chart borders and background — graph still reads as cohesive |
| Continuity | Eyes seek smoothest path | Remove y-axis line — consistent white space still aligns bars |
| Connection | Connected objects = group | Line graphs leverage this — lines create order in data |
Orientation | Shape | Line length | Line width | Size | Curvature | Added marks | Enclosure | Hue | Intensity | Spatial position
Core approach: Design in shades of grey, pick ONE bold colour to draw attention.
| Rule | Detail |
|---|---|
| Base colour = grey, not black | Grey allows greater contrast when bold colour appears |
| Default highlight = blue | (1) No colourblindness issues, (2) prints well in B&W, (3) versatile |
| Use sparingly | Too many colours = rainbow land = nothing stands out |
| Use consistently | Same colour = same meaning throughout. A change in colour signals change in topic/tone. |
| Colourblind safe | ~8% of men are red-green colourblind. Avoid red+green together. Use blue (positive) + orange (negative). Add bold/plus/minus signs as backup cues. |
| Tone-appropriate | Bold black for clinical/serious; muted blue for friendly; peppy colours for lighthearted content |
| Brand colours | Use 1-2 brand colours as "look here" cues; keep rest muted grey. If brand colour lacks contrast, use a different standout colour. |
| Heatmap over rainbow | Single-colour saturation scale (heatmap) beats rainbow — carries quantitative connotation |
| Dark backgrounds | Reverse the logic: grey baseline, white stands out. Yellow pops against black. Generally avoid dark backgrounds. |
Highlighting techniques ranked:
Use references/data-storytelling-and-case-patterns.md
for narrative structures, spoken-versus-written choices, story-clarity tests, spaghetti-graph
repairs, pie-chart alternatives, animation strategy, and stable ordering.
Apply this checklist to every data visualisation before sharing:
| Anti-Pattern | Fix |
|---|---|
| Showing all 100 oysters (exploratory dump) | Show only the 2 pearls (explanatory) |
| Pie/donut chart | Horizontal bar chart or simple text |
| 3D anything | Flat 2D always |
| Rainbow colours | Grey + one accent colour; heatmap for scales |
| Legend far from data | Label data directly |
| Centre-aligned text | Left-justify |
| Diagonal axis labels | Abbreviate or switch to horizontal bar |
| Every data point labelled | Label only the points that matter |
| No chart/axis titles | Always title the chart and every axis |
| Descriptive title ("Q3 Revenue") | Action title ("Q3 revenue exceeded target by 12%") |
| No call to action | Always end with what audience should do |
| Secondary y-axis | Label directly or split into two graphs |
| Dark/coloured background | White background (unless brand requires otherwise) |
| Filling every pixel of space | Preserve white space — it is strategic |
| Same visual for presentation + report | Build progressively for live; annotate fully for circulation |
references/relationship-diagrams-that-teach.md — layered before force layouts, node caps, cluster captions, matrix alternatives for dependency and architecture graphs.When charts must work at 360 px or similar mobile widths, load
references/responsive-mobile-charts.md. It covers chart-type switching, aggregation,
sparkline/headline patterns, horizontal-scroll safeguards, touch targets, and mobile
anti-patterns.
When hand-building charts in HTML/SVG/CSS/JS, load references/svg-css-js-implementation.md for SVG, D3, responsive, accessibility, and runnable skeleton patterns.
When the visual carries a management decision, KPI review, forecast, risk score, or analytics output, load references/analytics-dashboard-decision-story.md.
For data-product lineage, freshness, uncertainty, and decision drilldown, load data-foundation to decision visualisation.
examples/chart-worked-examples.md — five real good vs bad chart encodings (pie→sorted bar,
dual-axis→split panels, red/green→colour+non-colour cue, rainbow→single-hue ramp, gauge→bullet
graph), each with the perceptual + accessibility reasoning. Use it as the reasoning pattern when
choosing or reviewing an encoding.examples/chart-worked-examples.md (opens in a new tab)references/analytics-dashboard-decision-story.md (opens in a new tab)references/chart-encoding.md (opens in a new tab)references/dashboard-patterns.md (opens in a new tab)references/data-foundation-to-decision-visualisation.md (opens in a new tab)references/data-storytelling-and-case-patterns.md (opens in a new tab)references/relationship-diagrams-that-teach.md (opens in a new tab)references/responsive-mobile-charts.md (opens in a new tab)references/svg-css-js-implementation.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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-direction