AGENT SKILL

data-visualization

Load before answering any chart, graph, dashboard, infographic or chart-color question, even a quick one: it holds the kit's tested defaults. Covers chart choice by task, colorblind-safe categorical palettes (Okabe-Ito, limits past 8 series), OKLCH sequential and diverging scales for light and dark mode, 3:1 mark contrast, direct labels, number formats, KPI tiles, dashboards with filters and empty states, and accessible charts with text alternatives and data tables.

License 许可
MIT
最近更新
2026-11-10
Stars
★ 2
Forks
0

01 前言 Front Matter

name
data-visualization
license
MIT
metadata
{ "agent-attribution": "computer=vm; tool=Claude Code; version=2.1.304; timestamp=2026-10-20 02:07:10 UTC", "version-timestamp": "2026-10-20 11:40:00 UTC" }
description
Load before answering any chart, graph, dashboard, infographic or chart-color question, even a quick one: it holds the kit's tested defaults. Covers chart choice by task, colorblind-safe categorical palettes (Okabe-Ito, limits past 8 series), OKLCH sequential and diverging scales for light and dark mode, 3:1 mark contrast, direct labels, number formats, KPI tiles, dashboards with filters and empty states, and accessible charts with text alternatives and data tables.

02 资源文件 6

03 SKILL.md 正文

Data visualization

Excellent data visualization answers one question per chart, truthfully and fast: the right chart for the task, a title that states the finding, direct labels instead of legend hunting, color that encodes something, honest axes, and an equivalent that works without sight or color.

Defaults

Decision Default Change when
Chart by task Compare: bar. Change over time: line. Relationship: scatter. Distribution: histogram or box/strip plot. Part of whole: stacked or 100% bar. Exact lookup: table See chart selection for the full table and failure modes
Pie and donut Only for 2-4 parts of a real whole, labeled directly More parts, or comparisons between pies: use bars
Categorical color Up to 6 series (8 at most) from the Okabe-Ito set; or one highlight hue with the rest neutral gray More than 8 categories: group into "Other", use small multiples, or label directly without color
Sequential and diverging OKLCH single-hue ramp, L 0.96 to 0.31, 5-9 steps; diverging around a neutral midpoint near L 0.95 Diverging only when the data has a meaningful center (zero, target, average)
Mark contrast 3:1 against the background for bars, lines, points and segment boundaries (WCAG 2.2 SC 1.4.11) Light marks get a darker outline or a direct label
Title States the takeaway in 12 words or fewer ("Returns fell 18% after the size guide launched") Exploratory tools: a neutral descriptive title plus a dynamic summary
Labels Direct labels at line ends and on bars; legend only when direct labels collide Dense scatterplots: label only the highlighted points
Axes Bars start at zero; lines may start elsewhere with the break made obvious; units in the axis title or tick suffix Log scales only for multiplicative data, labeled "log scale"
Gridlines Horizontal, light (--color-border-subtle), 3-6 of them None when every bar is directly labeled
Numbers Tabular figures, locale separators, 2-3 significant digits on labels, real minus sign (U+2212) Finance tables show full precision
Type sizes Tick and data labels 12px minimum, axis titles 12-14px, chart titles 16-20px Slides and signage: scale with the medium (see the typography skill)
Marks Lines 2px (highlight 3px), points 6-8px, bar gaps 20-40% of bar width Sparklines: 1.5px, no axes
Dashboards 3-6 KPI tiles in the top row, 4-8 charts per view, filters at the top and persistent Operational wallboards: fewer, larger numbers
Accessibility Text summary plus a data table, non-color cues, keyboard access for interactive charts Never skip; see accessible charts
Motion 200-400ms transitions between states, --ease-standard; none under reduced motion Data stories can sequence reveals, still with a static equivalent

Workflow

  1. Write the question the reader needs answered ("Which region grew fastest this year?") and the takeaway, if known. One primary question per chart.
  2. Check the data: units, denominators, time span, missing values (missing is not zero), estimates vs measurements, source and date. Never invent or round away inconvenient values.
  3. Choose the chart from chart selection. Sketch two options and pick the one that needs less decoding.
  4. Encode color with data palettes: categorical, sequential or diverging as the data demands, in light and dark variants, with 3:1 marks.
  5. Label with labeling: takeaway title, direct labels, honest axes, formatted numbers, source line.
  6. Annotate the one or two points that matter (a launch date, a threshold, an outlier).
  7. Compose dashboards with dashboards and data stories or infographics with infographics.
  8. Make it accessible with accessible charts: summary, table, non-color cues, keyboard and screen reader support.
  9. Render and inspect at the real size, in light and dark, in grayscale, with color-vision-deficiency emulation (Chrome DevTools Rendering panel), with the longest labels and with empty, loading and error data. Recompute every number shown against the source. Use the design-critique skill's render loop.

Decisions that change the answer

  • Audience: executives need the takeaway and one number; analysts need exploration, exact values and export; the public needs plain language, a takeaway title and fewer series; audience.low-literacy-plain-language favors simple bars and icons with numbers.
  • Medium: interactive web charts can hide detail in tooltips (with accessible equivalents); print, slides and social cannot; signage needs huge numbers and one chart.
  • Style: style.data-dense-utilitarian favors small multiples, tight spacing and mono figures; style.editorial-magazine favors annotated, story-driven charts; style.swiss-international favors thin bars, hairline rules and direct labels; playful styles may use pictograms (still with exact values).
  • Market: number and date formats, RTL axis direction, and the meaning of red and green for financial change differ by market (see the color skill's meaning reference and market.* entries).
  • Brand: chart palettes derive from the brand but must be tested for distinguishability; a brand ramp is rarely a good categorical palette.

Common failures

  • Rainbow palettes and 12-color legends. Fix: highlight plus gray, or small multiples.
  • Truncated bar axes. A bar from 95 to 100 exaggerates a 5% difference. Fix: start at zero or switch to a dot plot.
  • Dual y-axes. Readers infer false correlations. Fix: two aligned charts, or index both series to 100.
  • 3D, shadows and gradients on marks. They distort size. Fix: flat marks.
  • Legend hunting. Fix: direct labels in the series color (text darkened to 4.5:1).
  • Pie charts for comparisons. Fix: sorted bars.
  • Unformatted numbers (1234567.891). Fix: "1.23M" in labels, full values in tooltips and tables.
  • Tooltip-only information. Hover is invisible to touch, keyboard and print. Fix: show key values; make tooltips focusable.
  • Color-only meaning. Fix: shapes, patterns, labels.
  • Decorative dashboards. Twenty tiles, no decision. Fix: a KPI hierarchy tied to the decisions users make.

References

Catalog IDs covered: infographics, screen-data-content

04 同仓库更多 Skills

newmindsgroup
newmindsgroup/visual-design-kit

web-design

Load before planning, designing, auditing or launching any website, landing page, cinematic hero, microsite or above-the-fold layout, or a prompt for Lovable, Bolt or v0 to build one, including regulated (prescription drug, health, finance), multilingual or market-specific launches. Covers page types (home, product, pricing, about, blog), conversion and ethical persuasion, responsive and fluid layouts, Core Web Vitals, SEO and structured data, localization and language-law requirements, stack and CMS choice (Astro, Next.js, WordPress, Webflow, Framer) and launch QA.

★ 2
newmindsgroup
newmindsgroup/visual-design-kit

ux-design

Load before designing or reviewing any flow, form, onboarding, navigation or content for real users, especially low-literacy, older, neurodivergent, child or other specific audiences. Covers research and usability tests, heuristic reviews, personas and jobs to be done, journeys and service blueprints, information architecture, UX laws, SUS, SEQ and HEART metrics, plain language and reading level, and microcopy and error messages.

★ 2
newmindsgroup
newmindsgroup/visual-design-kit

ui-design

Load before designing or specifying any interface screen or component, even a quick one: forms, tables, navigation, dashboards, onboarding, auth and passkeys, pricing, checkout, search and filters, settings, empty, loading and error states, notifications, consent and age-appropriate flows, and AI chat and agent interfaces, all to WCAG 2.2 AA. Also picks React UI libraries (toasts, drawers, command menus). Gives component specs, state matrices, sizes, density and keyboard and accessibility behavior.

★ 2
newmindsgroup
newmindsgroup/visual-design-kit

typography

Choose, pair, size and set type for brand, web, app, print, slides, signage and motion: modular scales, fluid clamp() type, measure, leading, tracking, OpenType features, font licensing and web font loading, and multiscript setting for CJK, Arabic, Hebrew, Devanagari and Thai. Use when selecting or pairing fonts, building a type scale or type tokens, fixing weak hierarchy or bad line breaks, setting long-form text or numbers, loading web fonts, or localizing type for another market.

★ 2
newmindsgroup
newmindsgroup/visual-design-kit

reference-reconstruction

Reconstructs the observed interface and behavior of a supplied app, site or screenshot set using a screen index, measurements, state and command maps, reusable components and matched-condition comparisons. Use when asked to reverse engineer, clone, reproduce or match a reference product, then adapt it if requested.

★ 2
newmindsgroup
newmindsgroup/visual-design-kit

print-packaging-social

Load before any print, packaging, label, barcode, social, out-of-home, slide-deck or email design question, even a quick one, and before making finished collateral files. Specs: bleed, safe zones, 300ppi, CMYK, PDF/X preflight, dielines, barcodes, social formats with 9:16 safe areas, billboard letter heights, 16:9 decks, bulletproof email. Renders token-driven brand books, sell sheets, cards, carousels and decks to PDF and PNG with a Canva editable twin.

★ 2