/sumi:data-visualization-masteryfrom Sumi
Guides chart selection, dashboard layout, data table design, and accessible dataviz with production React code using Recharts, D3, and Nivo.
Ships in Sumi. 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.
Data visualization is the art and science of encoding information visually so humans can perceive patterns, outliers, and trends faster than reading raw numbers. A poorly chosen chart misleads. A poorly designed chart confuses. A well-designed chart tells the truth instantly. This skill codifies the principles of Edward Tufte, Stephen Few, Jacques Bertin, and Tamara Munzner into a systematic framework for building data-dense UIs that are beautiful, honest, and accessible.
The gap between a developer-built dashboard and a professionally designed data experience is systematic craft: choosing the right chart type, encoding data correctly, managing visual hierarchy across dozens of data points, and ensuring every pixel of ink serves the data.
| File | Contents | Use When |
|---|---|---|
references/chart-type-encyclopedia.md | 50+ chart types organized by purpose (comparison, trend, distribution, relationship, part-to-whole, flow, geo, hierarchy). Each chart: when to use, when NOT to use, data shape, max data points, design specs (colors, spacing, typography, gridlines), accessibility notes, thumbnail description. | Selecting the right chart for a dataset. Reviewing chart design specs. Auditing chart choices in an existing UI. |
references/dashboard-layout-patterns.md | 30+ dashboard layout patterns: KPI rows, chart grids, filter bars, drill-down hierarchies, real-time monitoring, executive summary, operational, analytical, mobile card-stack. Each: CSS grid layout, spacing, component hierarchy, responsive collapse strategy. | Designing dashboard layouts. Reviewing dashboard information architecture. Building responsive analytics UIs. |
references/data-table-mastery.md | Complete data table design system: anatomy, column types (15+), sorting, filtering, pagination, selection, expansion, fixed headers, inline editing, cell formatting, empty/loading states, responsive strategies, density modes, full accessibility spec, production React/TypeScript code. | Designing or building data tables. Auditing table usability. Adding features to existing tables. |
references/dataviz-accessibility.md | Dataviz accessibility: alt text patterns for every chart type, data table alternatives, 8 colorblind-safe palettes with hex codes, pattern fills, high contrast mode, screen reader announcements, keyboard navigation, sonification, WCAG success criteria mapping. | Making charts accessible. Auditing dataviz accessibility. Building inclusive dashboards. |
references/dataviz-code-patterns.md | Production code for top 20 chart types using Recharts (React). Chart wrapper component with loading/error/empty states. Design tokens for dataviz. Responsive containers. Theme integration. Tooltip and legend customization. Print styles. | Implementing charts in React. Building chart component libraries. Setting up dataviz design tokens. |
visual-design-mastery -- Color science (oklch, palette generation) applies directly to dataviz color palettes. Typography mastery (tabular figures, alignment) is critical for number-heavy UIs.ui-pattern-intelligence -- Dashboard and table patterns at the component level. This skill provides the deeper dataviz-specific design intelligence.accessibility-inclusive-design -- WCAG foundation. This skill extends it with dataviz-specific accessibility patterns.component-patterns-code -- Component architecture. This skill provides dataviz-specific component patterns and code.design-systems-architecture -- Token architecture. This skill defines dataviz-specific tokens (chart colors, gridlines, axes).performance-states-patterns -- Loading, error, and empty states apply to every chart and table component.cognitive-psychology-ux -- Perceptual principles (pre-attentive processing, Gestalt grouping) underpin all visual encoding decisions.Data-Ink Ratio: Maximize the share of ink devoted to data. Every pixel that does not encode data should be questioned and likely removed. Remove chartjunk: decorative gridlines, 3D effects, gradient fills, drop shadows on bars, unnecessary legends, redundant labels.
Data-Ink Ratio = (Data Ink) / (Total Ink Used in the Graphic)
Target: > 0.8
Lie Factor: The size of an effect shown in the graphic divided by the size of the effect in the data. A lie factor of 1.0 is truthful. Above 1.05 or below 0.95 is distortion.
Lie Factor = (Size of effect in graphic) / (Size of effect in data)
Acceptable range: 0.95 - 1.05
Chartjunk Checklist -- Remove These:
Small Multiples: When comparing across categories or time periods, use small multiples (the same chart repeated with different data) rather than cramming everything into one chart. Same scale, same axes, same visual encoding -- only the data changes.
Humans decode visual channels with different accuracy. Always use the most accurate channel for the most important data dimension:
MOST ACCURATE (use first)
1. Position on a common scale (bar chart, dot plot, scatter plot)
2. Position on non-aligned scales (small multiples)
3. Length (bar chart)
4. Direction / Angle (slope, but NOT pie chart angles)
5. Area (bubble chart, treemap)
6. Volume (3D -- almost never use)
7. Color saturation / Luminance (heatmap, choropleth)
8. Color hue (categorical encoding only)
LEAST ACCURATE (use last)
Practical implication: A bar chart (position + length) will ALWAYS be more accurately read than a pie chart (angle + area). Use pie charts only when part-to-whole relationship matters more than precise comparison, and only with 2-5 slices.
Four levels of visualization design, each validated differently:
| Level | Question | Validation |
|---|---|---|
| Domain situation | Who are the users? What are their tasks? | Observe users in context |
| Data/task abstraction | What data types? What analytical tasks? | Test task completion |
| Visual encoding/interaction | What marks and channels? What interactions? | Perceptual experiments |
| Algorithm | How to compute and render efficiently? | Performance benchmarks |
| Purpose | Best Charts | Avoid |
|---|---|---|
| Compare values | Bar (horizontal for many categories), Column, Dot plot, Lollipop | Pie (bad for comparison), Radar (distorts) |
| Show trend over time | Line, Area, Sparkline, Slope chart | Bar (unless discrete periods), Pie |
| Show part-to-whole | Stacked bar (100%), Treemap, Donut (2-5 parts), Waffle | Pie (>5 slices), Stacked area (hard to read middle layers) |
| Show distribution | Histogram, Box plot, Violin, Density, Strip plot | Bar chart (not the same as histogram) |
| Show relationship | Scatter, Bubble, Correlation matrix | Line chart (implies time sequence) |
| Show flow/process | Sankey, Funnel, Alluvial | Pie, Bar |
| Show geographic data | Choropleth, Bubble map, Heat map | Bar chart (loses spatial context) |
| Show hierarchy | Treemap, Sunburst, Circle packing, Dendrogram | Pie (flat, no hierarchy) |
| Show composition over time | Stacked area, Stream graph | Multiple pie charts over time |
| Data Shape | Recommended |
|---|---|
| 1 number (KPI) | KPI card with delta, sparkline, context |
| 1 categorical + 1 quantitative | Bar/Column chart |
| 1 time + 1 quantitative | Line chart |
| 1 time + multiple quantitative | Multi-series line, Small multiples |
| 2 quantitative | Scatter plot |
| 3 quantitative | Bubble chart (3rd = size) |
| 1 categorical + parts | Stacked bar, Treemap |
| Hierarchical categories + 1 quantitative | Treemap, Sunburst |
| Source to Target + flow magnitude | Sankey diagram |
| Geographic + 1 quantitative | Choropleth |
| Matrix (rows x cols x value) | Heatmap |
| Audience | Approach |
|---|---|
| Executive | KPI cards, sparklines, single-number summaries, traffic lights. Max 5-7 data points visible. Summary first, drill-down available. |
| Analyst | Interactive charts, filters, cross-filtering, tooltips with detail. Support exploration. Higher data density acceptable. |
| General public | Simple charts (bar, line, donut). Annotations explaining "what this means." No jargon. Large text. |
| Domain expert | Specialized chart types acceptable (candlestick for finance, survival curves for medicine). Dense data OK. |
Sequential (low to high): Single hue varying in lightness. Use for ordered data (temperature, population, revenue).
Example (Blue sequential):
#f7fbff -> #deebf7 -> #c6dbef -> #9ecae1 -> #6baed6 -> #4292c6 -> #2171b5 -> #084594
Diverging (negative <- neutral -> positive): Two hues diverging from a neutral midpoint. Use for data with a meaningful center (profit/loss, above/below average, sentiment).
Example (Red-Blue diverging):
#b2182b -> #d6604d -> #f4a582 -> #fddbc7 -> #f7f7f7 -> #d1e5f0 -> #92c5de -> #4393c3 -> #2166ac
Categorical (distinct groups): Maximally distinct hues at similar lightness. Use for nominal categories (product lines, regions, user segments). Maximum 8-10 colors before confusion.
Colorblind-safe categorical (8 colors):
#4e79a7 #f28e2b #e15759 #76b7b2 #59a14f #edc948 #b07aa1 #ff9da7
(Tableau 10 subset -- optimized for distinguishability including colorblind viewers)
references/dataviz-accessibility.md for 8 verified palettesNumbers in tables and charts MUST use tabular figures (all digits occupy the same width) so columns align perfectly. Most professional fonts include a font-feature-settings: "tnum" OpenType feature.
/* Enable tabular figures for all data displays */
.dataviz-number,
.table-cell-number,
.kpi-value {
font-feature-settings: "tnum" 1;
font-variant-numeric: tabular-nums;
}
Fonts with excellent tabular figures: Inter, IBM Plex Sans, Roboto, SF Pro, DM Sans, JetBrains Mono.
| Context | Format | Example |
|---|---|---|
| Currency | Symbol + comma grouping + 2 decimal | $1,234,567.89 |
| Large currency | Abbreviate with suffix | $1.2M, $3.4B |
| Percentage | 1 decimal max, % symbol | 45.2% |
| Large numbers | Comma grouping or abbreviate | 1,234,567 or 1.2M |
| Dates in tables | Consistent format, sortable | 2026-03-12 or Mar 12, 2026 |
| Deltas/changes | Sign + color + arrow | +12.3% with green up-arrow |
| Negative numbers | Parentheses or minus + red | ($1,234) or -$1,234 |
KPI hero number: 32-48px, font-weight 700
KPI label: 12-14px, font-weight 500, text-transform uppercase, letter-spacing 0.05em, muted color
Chart title: 16-18px, font-weight 600
Axis labels: 11-12px, font-weight 400, muted color
Axis tick labels: 10-11px, font-weight 400, muted color
Tooltip title: 13-14px, font-weight 600
Tooltip value: 13-14px, font-weight 400
Data label on chart: 11-12px, font-weight 500
Table header: 12-13px, font-weight 600, text-transform uppercase, letter-spacing 0.03em
Table cell: 13-14px, font-weight 400
Container max-width: 1440px (centered)
Outer padding: 24px (desktop), 16px (tablet), 12px (mobile)
Column grid: 12 columns, 24px gutter
Card padding: 20-24px
Card border-radius: 8-12px
Card gap: 16-24px
Chart minimum height: 240px (desktop), 180px (mobile)
KPI card height: ~120px
Chart title to chart area: 12-16px
Chart area to legend: 16-20px
Axis label to axis line: 8px
Axis tick label to axis line: 4px
Gridline opacity: 0.1-0.15 (barely visible)
Bar gap (within group): 2-4px
Bar gap (between groups): 8-16px (> within-group gap)
Minimum bar width: 12px
Line stroke width: 2px (primary), 1.5px (secondary)
Data point dot radius: 4px (hover: 6px)
Tooltip offset from cursor: 8-12px
DO animate:
DO NOT animate:
/* Dataviz transition tokens */
--dataviz-transition-fast: 150ms ease-out; /* hover highlights */
--dataviz-transition-medium: 300ms ease-in-out; /* data updates */
--dataviz-transition-slow: 500ms ease-in-out; /* chart type changes */
--dataviz-tooltip-delay: 200ms; /* tooltip show delay */
--dataviz-tooltip-duration: 150ms ease-out; /* tooltip fade in */
| Interaction | Purpose | Implementation |
|---|---|---|
| Hover tooltip | Show exact value for a data point | Appears after 200ms delay, follows cursor or anchors to point |
| Click to filter | Select a category to filter other charts | Click a bar/legend item, other charts cross-filter |
| Brush selection | Select a time range | Click-drag on time axis, zooms or filters to selection |
| Zoom | Explore dense data | Scroll to zoom, pinch on mobile, reset button always visible |
| Pan | Navigate large datasets | Click-drag on chart area (when zoomed), or scroll on time axis |
| Toggle series | Show/hide data series | Click legend items, hidden items gray out |
| Drill-down | Navigate hierarchy | Click a bar segment or treemap cell to see children |
| Cross-filter | Link multiple charts | Selection in one chart filters all related charts |
+-------------------------------+
| Revenue * Live | <- Label (12px, muted) + Status indicator
| |
| $2.4M | <- Hero value (36px, bold, tabular figures)
| ^ 12.3% vs last month | <- Delta (14px, green + up arrow)
| |
| ~~~~~~~~~~~~~~~~~~~~~~~~ | <- Sparkline (past 30 days)
| |
| Target: $2.1M On track | <- Context line (12px, muted)
+-------------------------------+
Positive good: ^ 12.3% (green, #16a34a)
Positive bad: ^ 12.3% (red, #dc2626) -- e.g., churn rate going up
Negative good: v 8.1% (green, #16a34a) -- e.g., error rate going down
Negative bad: v 8.1% (red, #dc2626)
No change: - 0.0% (gray, #6b7280)
| Level | Data Points Visible | Use For |
|---|---|---|
| Glanceable | 3-7 | Executive KPIs, status monitors |
| Scannable | 8-30 | Standard dashboards, summary reports |
| Explorable | 30-200 | Analyst tools, detailed reports |
| Dense | 200-1000+ | Trading terminals, monitoring walls, scientific viz |
Level 0: KPI number (visible on dashboard)
Level 1: KPI + sparkline + delta (visible on dashboard card)
Level 2: Full chart with tooltip details (click KPI card)
Level 3: Data table behind the chart (click "View data" link)
Level 4: Raw data export (click "Export CSV")
Every data point should provide "scent" of what detail lies beneath:
| Anti-Pattern | Problem | Fix |
|---|---|---|
| Truncated Y-axis | Bar chart not starting at 0 exaggerates differences | Always start bar charts at 0. Line charts may start at non-zero if clearly labeled |
| Dual Y-axis | Two different scales on left/right mislead about correlation | Use two separate charts, or normalize to same scale |
| Pie chart > 5 slices | Unreadable, angles are hard to compare | Use horizontal bar chart sorted by value |
| 3D charts | Distorts visual encoding, pure decoration | Use 2D always |
| Rainbow color scale | Not perceptually uniform, misleading | Use sequential or diverging scale |
| Too many series | Spaghetti chart, impossible to follow | Highlight 1-2, gray out rest, or use small multiples |
| Missing context | Numbers without comparison are meaningless | Add targets, benchmarks, previous period, % change |
| Overloaded dashboard | Everything crammed together, nothing stands out | Reduce to 5-7 charts max, use progressive disclosure |
| Inconsistent time scales | One chart monthly, next chart daily, side by side | Standardize time scale across related charts |
| Decorative gradients | Imply data variation where none exists | Use flat fills |
| Component | Desktop (>1024px) | Tablet (768-1024px) | Mobile (<768px) |
|---|---|---|---|
| KPI row | 4-5 cards horizontal | 3 cards, wrap to 2 rows | 2 cards per row, stack |
| Chart | Full size, tooltips | Slightly smaller, tooltips | Full width, simplified |
| Legend | Right side or top | Below chart | Below chart, scrollable |
| Data table | Full columns visible | Hide low-priority columns | Card view or horizontal scroll |
| Filters | Sidebar or top bar | Top bar, collapsible | Bottom sheet or modal |
| Dashboard | 12-col grid | 8-col grid | Single column stack |
/* Chart Colors -- Categorical */
--dataviz-categorical-1: #4e79a7;
--dataviz-categorical-2: #f28e2b;
--dataviz-categorical-3: #e15759;
--dataviz-categorical-4: #76b7b2;
--dataviz-categorical-5: #59a14f;
--dataviz-categorical-6: #edc948;
--dataviz-categorical-7: #b07aa1;
--dataviz-categorical-8: #ff9da7;
/* Chart Colors -- Sequential (blue) */
--dataviz-sequential-1: #f7fbff;
--dataviz-sequential-2: #deebf7;
--dataviz-sequential-3: #c6dbef;
--dataviz-sequential-4: #9ecae1;
--dataviz-sequential-5: #6baed6;
--dataviz-sequential-6: #4292c6;
--dataviz-sequential-7: #2171b5;
--dataviz-sequential-8: #084594;
/* Chart Colors -- Diverging (red-blue) */
--dataviz-diverging-negative-4: #b2182b;
--dataviz-diverging-negative-3: #d6604d;
--dataviz-diverging-negative-2: #f4a582;
--dataviz-diverging-negative-1: #fddbc7;
--dataviz-diverging-neutral: #f7f7f7;
--dataviz-diverging-positive-1: #d1e5f0;
--dataviz-diverging-positive-2: #92c5de;
--dataviz-diverging-positive-3: #4393c3;
--dataviz-diverging-positive-4: #2166ac;
/* Chart Colors -- Semantic */
--dataviz-positive: #16a34a;
--dataviz-negative: #dc2626;
--dataviz-warning: #d97706;
--dataviz-neutral: #6b7280;
/* Chart Structure */
--dataviz-grid-color: #e5e7eb;
--dataviz-grid-opacity: 0.15;
--dataviz-axis-color: #9ca3af;
--dataviz-axis-width: 1px;
--dataviz-tick-length: 4px;
--dataviz-line-width: 2px;
--dataviz-line-width-secondary: 1.5px;
--dataviz-point-radius: 4px;
--dataviz-point-radius-hover: 6px;
--dataviz-bar-radius: 4px 4px 0 0;
--dataviz-bar-gap: 4px;
--dataviz-bar-group-gap: 12px;
/* Tooltip */
--dataviz-tooltip-bg: #1f2937;
--dataviz-tooltip-text: #f9fafb;
--dataviz-tooltip-border-radius: 6px;
--dataviz-tooltip-padding: 8px 12px;
--dataviz-tooltip-shadow: 0 4px 12px rgba(0,0,0,0.15);
--dataviz-tooltip-max-width: 240px;
/* Typography */
--dataviz-font-family: 'Inter', system-ui, sans-serif;
--dataviz-font-mono: 'JetBrains Mono', 'SF Mono', monospace;
--dataviz-kpi-size: 36px;
--dataviz-kpi-weight: 700;
--dataviz-label-size: 12px;
--dataviz-label-weight: 500;
--dataviz-axis-label-size: 11px;
--dataviz-title-size: 16px;
--dataviz-title-weight: 600;
/* Spacing */
--dataviz-chart-min-height: 240px;
--dataviz-chart-padding: 20px;
--dataviz-card-padding: 20px;
--dataviz-card-gap: 16px;
--dataviz-card-radius: 8px;
[data-theme="dark"] {
--dataviz-grid-color: #374151;
--dataviz-axis-color: #6b7280;
--dataviz-tooltip-bg: #f9fafb;
--dataviz-tooltip-text: #1f2937;
--dataviz-positive: #22c55e;
--dataviz-negative: #ef4444;
--dataviz-warning: #f59e0b;
/* Lighten categorical colors for dark backgrounds */
--dataviz-categorical-1: #6ba3d6;
--dataviz-categorical-2: #f5a855;
--dataviz-categorical-3: #e87b7d;
--dataviz-categorical-4: #93cec9;
--dataviz-categorical-5: #7dbd72;
--dataviz-categorical-6: #f0d56e;
--dataviz-categorical-7: #c499b8;
--dataviz-categorical-8: #ffb4bc;
}
@media print {
/* Remove interactive elements */
.chart-tooltip,
.chart-legend-toggle,
.chart-zoom-controls,
.dashboard-filter-bar { display: none; }
/* Force white background */
.chart-container,
.dashboard-card { background: white !important; }
/* Ensure visible borders for cards */
.dashboard-card { border: 1px solid #d1d5db !important; }
/* Increase contrast for print */
.chart-gridline { opacity: 0.3 !important; }
.chart-axis-label { color: #111827 !important; }
/* Avoid page breaks inside charts */
.dashboard-card { break-inside: avoid; }
.chart-container { break-inside: avoid; }
/* Ensure chart colors print distinctly */
.chart-series { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
Use this checklist when reviewing any chart, graph, or dashboard:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub phazurlabs/sumi --plugin sumi45 skills in this plugin
/accessibility-inclusive-designWCAG 2.2 compliance, ARIA authoring patterns, screen reader and keyboard navigation, color contrast, and cognitive/neurodiversity accommodations. Use when auditing accessibility, fixing a11y violations, choosing ARIA roles, checking contrast ratios, or designing for ADHD, dyslexia, autism, or motor impairment./agentic-ai-generative-uxDesign patterns for agentic AI: multi-agent orchestration UX, generative UI, RAG interfaces, LLM hallucination guardrails, confidence indicators, and trust calibration. Use when designing AI copilots or autonomous agents, adding verification affordances, or auditing an AI feature for safety, control, and consent./Other plugins' skills for the same job